Write a small C program to determine whether a machine's
type is little-endian or big-endian.
Answer Posted / mohana
The below code snipeet tells whether the system is little
or big endian.
int main()
{
int x=1;
if(x)
printf("big endian");
else
printf("little endian");
return 0;
}
| Is This Answer Correct ? | 7 Yes | 24 No |
Post New Answer View All Answers
Write a code of a general series where the next element is the sum of last k terms.
What is scope rule of function in c?
What is hungarian notation? Is it worthwhile?
How can I implement sets or arrays of bits?
What is the advantage of a random access file?
What is default value of global variable in c?
Where can I get an ansi-compatible lint?
in any language the sound structure of that language depends on its a) character set, input/output function, its control structures b) character set, library functions, input/output functions its control structures c) character set, library functions, control sturctures d) character set, operators, its control structures
How can I insert or delete a line (or record) in the middle of a file?
What is dynamic memory allocation?
What is a pointer value and address in c?
What are the types of data files?
how many types of operators are include in c language a) 4 b) 6 c) 8 d) 12
How do c compilers work?
Why we use conio h in c?