#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


Please Help Members By Posting Answers For Below Questions

Can include files be nested?

620


What is void main () in c?

722


Explain what is the purpose of "extern" keyword in a function declaration?

613


Write a C Program That Will Count The Number Of Even And Odd Integers In A Set using while loop

1707


What is the importance of c in your views?

586






write a program to find out prime number using sieve case?

1631


How do you define a string?

649


Why we use conio h in c?

580


What is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?

726


Explain what is a program flowchart and explain how does it help in writing a program?

643


what will be maximum number of comparisons when number of elements are given?

1406


What are enumerated types?

646


How does normalization of huge pointer works?

622


What is structure in c language?

612


How can I write data files which can be read on other machines with different word size, byte order, or floating point formats?

607