#include<stdio.h>
#include<conio.h>
void main()
{
float a;
clrscr();
a=0.5;
if(a==0.5)
printf("yes");
else
printf("no");
getch();
}
Answer Posted / sandeep
output is no beacause the default datatype of a floatingpoint value is "double",and doubles are always bigger than floats
so in above a is "float" where 0.5 is double
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is a file descriptor in c?
Write a program to print factorial of given number using recursion?
How can I remove the leading spaces from a string?
Explain why C language is procedural?
Is Exception handling possible in c language?
What is pre-emptive data structure and explain it with example?
How many levels of pointers have?
Write a program to check prime number in c programming?
What is openmp in c?
How arrays can be passed to a user defined function
Explain goto?
What is a macro?
Where does the name "C" come from, anyway?
What is the use of sizeof?
Can you assign a different address to an array tag?