[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 :: Ericsson

3. How to know if a system is little endian or big endian?

Answer:

#include
int main()
{
int tmp=1;
if(*(char*)&tmp == 1)
printf("\n system is little endian \n");
else
printf("\n sytem is big endian \n");
return 0;
}

Post Your Answer Here:      Public      Private

Rate This: +2 -0
Report     

Post Your Reply Here:     

Report Error

Report Error

Please Login First Click Here