NVIDIA Interview Question
Software Engineer / Developerssomething like this:
bool findEndianness() {
unsigned int x = 0xAABBCCDD;
char *px = (char *) &x;
char px0 = *px;
char px3 = *(px + 3);
if (px0 == (char) 0xDD && px3 == (char) 0xAA) {
cout << "you're big endian!" << endl;
} else if (px0 == (char) 0xAA && px3 == (char) 0xDD) {
cout << "you're little endian!" << endl;
} else {
cout << "you're mixed" << endl;
}
}
Thought process is an East Coast originated rap/hip hop duet from Providence Rhode Island . Thought
process began as separate entities, Neumatic impact aka Mark Lorette and Mobius the shepherd. Lyrics
that show different perspectives on everyday topics from Religion to politics and everything in between.
The idea is centered around Peaceful coexistence (or, "Peaceful co-existence ).
Their are many ways of looking at current events. We know it's important to concider all direction and
Thought Processes. Hence the name, Thought Process
Thought process is an East Coast originated rap/hip hop duet from Providence Rhode Island . Thought
process began as separate entities, Neumatic impact aka Mark Lorette and Mobius the shepherd. Lyrics
that show different perspectives on everyday topics from Religion to politics and everything in between.
The idea is centered around Peaceful coexistence (or, "Peaceful co-existence ).
Their are many ways of looking at current events. We know it's important to concider all direction and
Thought Processes. Hence the name, Thought Process
Thought process is an East Coast originated rap/hip hop duet from Providence Rhode Island . Thought
process began as separate entities, Neumatic impact aka Mark Lorette and Mobius the shepherd. Lyrics
that show different perspectives on everyday topics from Religion to politics and everything in between.
The idea is centered around Peaceful coexistence (or, "Peaceful co-existence ).
Their are many ways of looking at current events. We know it's important to concider all direction and
Thought Processes. Hence the name, Thought Process
int main()
- Captain Obvious March 15, 2011{int n=1;
char *c=&n;
if(c)
printf("Little endian");
else
printf("Big endian ");
return 0;
}