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
int i=10; printf("%d %d %d", i, i=20, i);
What are the c keywords?
What is integer constants?
hi, which software companys will take,if d candidate's % is jst 55%?
What is structure padding in c?
Explain goto?
Difference between Function to pointer and pointer to function
What is the difference between struct and union in C?
Why clrscr is used in c?
Which header file should you include if you are to develop a function which can accept variable number of arguments?
What is a pointer in c?
Explain the process of converting a Tree into a Binary Tree.
Can variables be declared anywhere in c?
How many data structures are there in c?
What are the different types of linkage exist in c?