Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Elegance vs. Performance

Name: Anonymous 2011-05-27 4:11

So /prog/, what would you choose between these two snippets of C code...


int *arr[3];
arr[0] = 1;
arr[1] = 2;
arr[2] = 3;


or...


int i;
int *arr[3];
for (i = 0; i < 3; i++)
  arr[i] = i+1;


The second one is more elegant, but requires more operations.

Name: Anonymous 2011-05-28 11:52

>>55
I'm not the one who fucking doesn't understand that C basically abstracts assembler. Want me to cite some of your previous posts that demonstrate this confusion?

You also made *zero* comments about how your shit assembler code was outside the realm of standard C. I'm suspecting you omitted this comment because you've never actually read one of the standards.

Again, you are stupid. Your posts are ambgiuous, and you show zero scholastic aptitude when you do any kind of technical writing.

Again, go back to playing with your barbie dolls and leave the computer programming to the men.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List