Slashdot Mirror


User: Anguila

Anguila's activity in the archive.

Stories
0
Comments
1
First seen
Last seen
Profile
(view on slashdot.org)

Comments · 1

  1. I'd go for arrays on Arrays vs Pointers in C? · · Score: 1

    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?