Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What are header files in c?

1045


What is #include cctype?

1085


Do you have any idea about the use of "auto" keyword?

1059


Why dont c comments nest?

1013


What is new line escape sequence?

1285


List some applications of c programming language?

916


What is indirection? How many levels of pointers can you have?

1106


What do header files do?

1040


Why #include is used in c language?

1013


Explain how do you override a defined macro?

1035


p*=(++q)++*--p when p=q=1 while(q<=6)

1714


Can a local variable be volatile in c?

968


What is c preprocessor mean?

1269


Explain what are the different data types in c?

1183


What is the difference between exit() and _exit() function?

1011