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...

main()
{
float a=3.2e40;
printf("%d",a);
}

Answer Posted / deepali chandra

the o/p=0
because here we are trying to print the value in int form
which has been of float datatype.since float has a higher
precendence over int therefore it will give the o/p=0 and
similarly after this every output will be =0.this is the
function of the compiler that we cannot print the value of
a higher data type using a lower datatype.

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How is pointer initialized in c?

1042


What is meant by gets in c?

1205


Why do we need volatile in c?

1191


What is p in text message?

1000


I have a varargs function which accepts a float parameter?

1062


i have to apply for the rbi for the post of officers. i need to know abt the entrance questions whether it may be aps or techinical....

1992


What is selection sort in c?

1111


What is static and volatile in c?

1234


any restrictions have on the number of 'return' statements that may be present in a function. a) no restriction b) only 2 return statements c) only 1 return statements d) none of the above

1151


Is there anything like an ifdef for typedefs?

1163


Explain About fork()?

1126


Can you write a programmer for FACTORIAL using recursion?

1051


Create a simple code fragment that will swap the values of two variables num1 and num2.

1300


Explain what is the difference between null and nul?

1171


Which is best linux os?

1035