main()
{
float a=8.8;
double b=8.8;
if(a==b)
printf("Equal");
else
printf("not equal");
getch();
}
what is the output?
with reason
Answer Posted / hema
If i want to compare the value stored in float and double,
how do i do that? I tried typecasting i,e.,
if (a==float(b))
printf("Equal");
else
printf("not equal");
Even then it say, not equal. How to overcome this problem?
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Can a pointer be volatile in c?
What is NULL pointer?
What is the deal on sprintf_s return value?
How can I read a binary data file properly?
What is the behavioral difference when include header file in double quotes (“”) and angular braces (<>)?
can any one provide me the notes of data structure for ignou cs-62 paper
What is the collection of communication lines and routers called?
Difference between linking and loading?
What is the maximum no. of arguments that can be given in a command line in C.?
How to find a missed value, if you want to store 100 values in a 99 sized array?
Write a program of prime number using recursion.
How many bytes is a struct in c?
What is signed and unsigned?
why use "return" statement a) on executing the return statement it immediately transfers the control back to the calling program b) it returns the value present in the parentheses return, to the calling program c) a & b d) none of the above
What are valid operations on pointers?