1.

If the data “ABCD” is to be stored in a little endian machine, it will be stored as _________(a) ABCD(b) DCBA(c) CDAB(d) BCDAThis question was addressed to me during an interview.My question comes from Endianness in portion Miscellaneous Topics in C of C

Answer»

Correct option is (b) DCBA

Best explanation: In a little endian machine, the least significant byte (right most) is stored in the smallest address. HENCE the DATAABCD” will be stored in the form of “DCBA”.



Discussion

No Comment Found

Related InterviewSolutions