#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
Is c is a high level language?
How can I send mail from within a c program?
What is bss in c?
Can you please explain the difference between syntax vs logical error?
How can I remove the trailing spaces from a string?
What is auto keyword in c?
how to execute a program using if else condition and the output should enter number and the number is odd only...
What is the use of bitwise operator?
what is the differnce between programing langauge and tool? is sas is a programing langauge r tool?
Explain what does it mean when a pointer is used in an if statement?
Hai sir, I had planned to write the NIC scientific engineer exam , plz post the sample question......
What will the preprocessor do for a program?
How will you print TATA alone from TATA POWER using string copy and concate commands in C?
What is meant by operator precedence?
What happens if header file is included twice?