#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 / ankita sharma
Answer will be yes. we can compare two floating point numbers. as a is having value 0.5 and when it is compared with 0.5 so 1st printf would get executed which is inside if statement. so we would get answer as "yes" on the console window as output.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is graph in c?
Why do we write return 0 in c?
Is c is a middle level language?
the portion of a computer program within which the definition of the variable remains unchanged a) mode b) module c) scope d) none
How do I send escape sequences to control a terminal or other device?
What is function what are the types of function?
What is the difference between printf and scanf in c?
What are comments and how do you insert it in a C program?
What are the features of the c language?
Write a program to show the change in position of a cursor using c
Explain what is the heap?
Is this program statement valid? INT = 10.50;
What is the use of getch ()?
If null and 0 are equivalent as null pointer constants, which should I use?
Which operators cannot be overloaded a) Sizeof b) .* c) :: d) all of the above