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
What are the advantages and disadvantages of c language?
Why is python slower than c?
Describe the complexity of Binary search, Quicksort and various other sorting and searching techniques..
What is the use of #include in c?
What does dm mean sexually?
What is string constants?
What are linker error?
Is it valid to address one element beyond the end of an array?
What does c mean?
How to check whether string is a palindrome, WITHOUT USING STRING FUNCTIONS?
Explain what will be the outcome of the following conditional statement if the value of variable s is 10?
What is #include stdlib h?
What is the difference between NULL and NUL?
How can I manipulate strings of multibyte characters?
What is the difference between the local variable and global variable in c?