#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 / abhishek singh

yes in output when a=0.5;
but when a=0.4 or 0.6
it no in output

Is This Answer Correct ?    19 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the main difference between calloc () and malloc ()?

564


What are pointers?

621


What is self-referential structure in c programming?

648


Write a program for Overriding.

672


What is malloc calloc and realloc in c?

653






The process of repeatedly running a set of computer instructions until some condition is specifed a) condition b) sequential condition c) global d) iteration

621


Should a function contain a return statement if it does not return a value?

588


Why flag is used in c?

645


What are called c variables?

567


What is register variable in c language?

592


Write a program to compute the similarity between two strings - The program should get the two strings as input - Then it will output one single number which is the percentage of similarity between the two strings

2238


Explain enumerated types.

592


How do you define a function?

577


Is c easy to learn?

550


What are different storage class specifiers in c?

611