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

Is printf a keyword?

754


What are the characteristics of arrays in c?

609


What are static variables in c?

624


What is chain pointer in c?

599


What is a macro?

653






What is meant by errors and debugging?

644


What is the deal on sprintf_s return value?

639


write a progrmm in c language take user interface generate table using for loop?

1571


What oops means?

576


What is meant by preprocessor in c?

526


Program will then find the largest of three numbers using nested if-else statements. User is prompted to enter three numbers. Program will find the largest number and display it on the screen. All three numbers entered by the user are also displayed. If user enters 21, 33, and 5, the output should be as follows: You entered: 21, 33 and 5. The largest number is 33.

1011


How do you list a file’s date and time?

625


Why C language is a procedural language?

614


typedef struct{ char *; nodeptr next; } * nodeptr ; What does nodeptr stand for?

1066


What are the advantages of using macro in c language?

585