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

What is bubble sort in c?

1051


Write a program to find factorial of a number using recursive function.

1123


Which header file is used for clrscr?

1053


Can stdout be forced to print somewhere other than the screen?

1047


Why is c not oop?

978


the 'sizeof' operator reported a larger size than the calculated size for a structure type. What could be the reason?

998


what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;

2642


Which one would you prefer - a macro or a function?

1083


What is the purpose of main() function?

1249


How is a macro different from a function?

1180


Describe how arrays can be passed to a user defined function

1294


Why is c so important?

1062


How can I change the size of the dynamically allocated array?

1150


What is typedef?

1422


Is a house a shell structure?

1160