(May 5th, 2015, 14:47)NobleHelium Wrote: Answer this question!
Write a C program that can detect whether the current machine is big endian or little endian.
Something along the lines of:
int x = 1;
char *c = (char *) &i;
If c is 0 then we're big endian; if it's 1 then we're little endian.
Now I'm off to fight with a TA. He says my php assignment didn't do any of the things it was supposed to do and displayed a bunch of debugging code. I run it and get none of the behavior he described. God I hate TAs.
Suffer Game Sicko
Dodo Tier Player
Dodo Tier Player