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
#include
What would happen to X in this expression: X += 15; (assuming the value of X is 5)
How do you print an address?
What is 'bus error'?
What is signed and unsigned?
What is difference between far and near pointers?
Lists the benefits of c programming language?
Do character constants represent numerical values?
what are the advanced features of functions a) function declaration and prototypes b) calling functions by value or by reference c) recursion d) all the above
What are run-time errors?
What is the Purpose of 'extern' keyword in a function declaration?
What is the incorrect operator form following list(== , <> , >= , <=) and what is the reason for the answer?
what is the significance of static storage class specifier?
What is the difference between NULL and NUL?
Explain the binary height balanced tree?