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 delete a node from linked list w/o using collectons?
What is the difference between constant pointer and constant variable?
Explain About fork()?
Are comments included during the compilation stage and placed in the EXE file as well?
What are void pointers in c?
Why is c so important?
I completed my B.tech (IT). Actually I want to develop virtual object that which will change software technology in the future. To develop virtual object what course I have to take. can I any professor to help me.
What are the benefits of c language?
Are global variables static in c?
What does calloc stand for?
What are lookup tables in c?
Explain what is the best way to comment out a section of code that contains comments?
What is character constants?
Explain enumerated types.
Explain void pointer?