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

#include { printf("Hello"); } how compile time affects when we add additional header file .

1943


What would happen to X in this expression: X += 15; (assuming the value of X is 5)

2023


How do you print an address?

1325


What is 'bus error'?

1210


What is signed and unsigned?

1125


What is difference between far and near pointers?

1107


Lists the benefits of c programming language?

1207


Do character constants represent numerical values?

1400


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

1171


What are run-time errors?

1179


What is the Purpose of 'extern' keyword in a function declaration?

1147


What is the incorrect operator form following list(== , <> , >= , <=) and what is the reason for the answer?

1547


what is the significance of static storage class specifier?

2345


What is the difference between NULL and NUL?

1354


Explain the binary height balanced tree?

1239