[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 :: Tavant Technologies

27. Write a program to find machine is little endian or big endian

Answer:

int i=1;
if ((*(char*)&i) == 1)
printf("LE");
else
printf("BE");

Post Your Answer Here:      Public      Private

Rate This: +1 -0
Report     

Post Your Reply Here:     

Report Error

Report Error

Please Login First Click Here