[Updated] Goldman Sachs Aptitude Test Questions and Answers
Practice List of TCS Digital Coding Questions !!!
Take 50+ FREE!! Online Data Interpretation Mock test to crack any Exams.
Interview Questions and Answers :: Cisco

7. Difference between little endian and big endian,write a code that tells you machine is little or big endian ??

Answer:

void IsLitttleOrBigEndian()
{
char word = 1;
if((*(char *)& word) == 1 )
printf(“\n Machine is little Indian”);
else
printf(“\n Machine is big Indian”);
}

Post Your Answer Here:      Public      Private

Rate This: +0 -0
Report     

Post Your Reply Here:     

Report Error

Report Error

Please Login First Click Here