#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 / ravi kant singh

Answer is it will print no.....because you can not compare two floating point number upto precision 

Is This Answer Correct ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does the message "automatic aggregate intialization is an ansi feature" mean?

925


What are 'near' and 'far' pointers?

807


In C language, a variable name cannot contain?

1007


Why we use conio h in c?

890


Which built-in library function can be used to match a patter from the string?

993


Is c compiled or interpreted?

885


What does %c do in c?

780


Tell me what are bitwise shift operators?

875


main() { struct s1 { char *str; struct s1 *ptr; }; static struct s1 arr[] = { {"Hyderabad",arr+1}, {"Bangalore",arr+2}, {"Delhi",arr} }; struct s1 *p[3]; int i; < BR> for(i=0;i<=2;i++) p[i] = arr[i].ptr; printf("%s ",(*p)->str); printf("%s ",(++*p)->str); printf("%s ",((*p)++)->str); }

1148


find the sum of two matrices and WAP for it.

881


What is a lvalue

870


Write a program to show the change in position of a cursor using c

824


What is a example of a variable?

756


Does c have circular shift operators?

965


What is uint8 in c?

876