#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
Can include files be nested?
What is void main () in c?
Explain what is the purpose of "extern" keyword in a function declaration?
Write a C Program That Will Count The Number Of Even And Odd Integers In A Set using while loop
What is the importance of c in your views?
write a program to find out prime number using sieve case?
How do you define a string?
Why we use conio h in c?
What is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?
Explain what is a program flowchart and explain how does it help in writing a program?
what will be maximum number of comparisons when number of elements are given?
What are enumerated types?
How does normalization of huge pointer works?
What is structure in c language?
How can I write data files which can be read on other machines with different word size, byte order, or floating point formats?