#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 const pointer?
Is c is a high level language?
int i=3; this declaration tells the C compiler to a) reserve space in memory to hold the integer value b) associate the name i with this memory location c) store the value 3 at this location d) all the above
What is the role of this pointer?
What is #pragma statements?
What are runtime error?
Why c is called procedure oriented language?
What is volatile c?
What are local static variables?
please give me some tips for the placement in the TCS.
Explain how can I prevent another program from modifying part of a file that I am modifying?
What is the use of volatile?
Why is it that not all header files are declared in every C program?
Why do we use null pointer?
What is meant by high-order and low-order bytes?