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

Why can't I perform arithmetic on a void* pointer?

624


What is the explanation for prototype function in c?

554


What is #include called?

555


Do you know what are the properties of union in c?

569


What does the characters “r” and “w” mean when writing programs that will make use of files?

837






Are enumerations really portable?

583


Why do we use null pointer?

592


exit () is used to a) exit () terminates the execution of the program itself b) exit () terminates the execution of the loop c) exit () terminates the execution of the block d) none of the above

652


Why c language is called c?

557


int i[2], j; int *pi;i[0] = 1; i[1] = 5; pi = i; j = *pi + 1 + *(pi + 1)Value of j after execution of the above statements will be a) 7 b) 6 c) 4 d) pointer

637


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

593


in programming languages a statement or part of a statement that specifies several different execution sequences a) constructs b) distructs c) executes d) none

587


What is the description for syntax errors?

600


What is modifier & how many types of modifiers available in c?

590


what is ur strangth & weekness

1798