#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 does == mean in texting?
What is a macro, and explain how do you use it?
Why do we use pointer to pointer in c?
what do you mean by inline function in C?
about c language
Explain void pointer?
Program will then find the largest of three numbers using nested if-else statements. User is prompted to enter three numbers. Program will find the largest number and display it on the screen. All three numbers entered by the user are also displayed. If user enters 21, 33, and 5, the output should be as follows: You entered: 21, 33 and 5. The largest number is 33.
How does normalization of huge pointer works?
What does *p++ do? What does it point to?
I completed my B.tech (IT). Actually I want to develop virtual object that which will change software technology in the future. To develop virtual object what course I have to take. can I any professor to help me.
What is string constants?
What the different types of arrays in c?
What is the right type to use for boolean values in c?
What is the behavioral difference when include header file in double quotes (“”) and angular braces (<>)?
What do header files do?