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: nambla_dot_org_rules_you 2011-05-27 20:08

>>37
"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."

You still have yet to cite a passage from C89, C90, or C99 that cites using assembler as part of the C standard.  Do you even know why we have standards? I bet not you faggot? Do you know how your compiler is implemented in relation to these standards? Again, I bet no. I'm willing to bet that you've never even attempted to write an ANSI/ISO C compiler.

Christ you are one stupid sob. Go back to playing with your barbies. I'm sure barbie and ken will believe your made up definition of C.

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