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

Differentiate between a for loop and a while loop? What are it uses?

1189


What is a volatile keyword in c?

1165


With the help of using classes, write a program to add two numbers.

1044


Explain how do you generate random numbers in c?

1090


What are qualifiers in c?

1039


What are the functions to open and close the file in c language?

1041


What is 'bus error'?

1157


Here is a good puzzle: how do you write a program which produces its own source code as output?

1106


How can I send mail from within a c program?

1034


How can I rethow can I return a sequence of random numbers which dont repeat at all?

1192


What is the advantage of using #define to declare a constant?

1099


Write a program to compute the similarity between two strings - The program should get the two strings as input - Then it will output one single number which is the percentage of similarity between the two strings

2754


What are the two forms of #include directive?

1171


please explain clearly about execution of c program in detail,in which stage are the printf sacnf getting into exeecutable code

2185


What is the use of a static variable in c?

1062