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-27 17:57

>>34
You should learn to read, write and interpret written English properly. I suggest you return to whatever basic educational facilities that are available to you and retake (I'm presuming you've already taken them, I realize that might not be the case considering your performance so far) the most basic courses in English, then attempt to learn programming, that way you'll be able to have a normal conversation about programming.

Before you do that I see no point in conversing with you, you seem to be very unintelligent and your behavior is infantile, at the very least basic education should make you somewhat acceptable.

This is coming from a person who writes at the 8th grade level.
I'm not the only trying to include shit that outside the standard definition of C
Right, go back to school, kid.

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