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
how to solve "unable to open stdio.h and conio.h header files in windows 7 by using Dos-box software
Difference between goto, long jmp() and setjmp()?
What is calloc malloc realloc in c?
What is a program flowchart and explain how does it help in writing a program?
What are the advantages and disadvantages of pointers?
How can I call fortran?
string reverse using recursion
Is c# a good language?
How can I read data from data files with particular formats?
What are c preprocessors?
What is #include stdio h and #include conio h?
What is cohesion in c?
How can you call a function, given its name as a string?
count = 0; for (i = 1;i < = 10; i++);count = count + i; Value of count after execution of the above statements will be a) 0 b) 11 c) 55 d) array
When should a type cast not be used?