#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
What does the message "automatic aggregate intialization is an ansi feature" mean?
What are 'near' and 'far' pointers?
In C language, a variable name cannot contain?
Why we use conio h in c?
Which built-in library function can be used to match a patter from the string?
Is c compiled or interpreted?
What does %c do in c?
Tell me what are bitwise shift operators?
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); }
find the sum of two matrices and WAP for it.
What is a lvalue
Write a program to show the change in position of a cursor using c
What is a example of a variable?
Does c have circular shift operators?
What is uint8 in c?