#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
simple program of graphics and their output display
Write a program to check whether a number is prime or not using c?
What is the argument of a function in c?
find the sum of two matrices and WAP for it.
What is string in c language?
Explain what is the stack?
What is the difference between if else and switchstatement
What are the storage classes in C?
What is the g value paradox?
What is a newline escape sequence?
What is the use of printf() and scanf() functions?
What language is c written?
You are to write your own versions of strcpy() and strlen (). Call them mystrcpy() and mystrlen(). Write them first as code within main(), not as functions, then, convert them to functions. You will pass two arrays to the function in the case of mystrcpy(), the source and target array.
What do you mean by command line argument?
How pointer is different from array?