Forgot your password?
typodupeerror

Comment I'd go for arrays (Score 1) 308

My answer, TO THE QUESTION is:
I can't think off the top of my head any example where pointer arithmetic + platform would fail or be worse than an array, but I bet there is.
Hence, I would use arrays because it'll work well, ON AVERAGE, on all platforms and later add #ifdef(_POINTER_ARITHMETIC_IS_BETTER_) optimizations inside, if required at all.

I hope more people add their feedback on the very interesting question asked:
Will pointer aritmethic be worse/better/the same on some platforms?
and less people try add noise answering ANOTHER question:
What would a self-proclamated master programmer optimize on modern machines?

Slashdot Top Deals

The closest to perfection a person ever comes is when he fills out a job application form. -- Stanley J. Randall

Working...