#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 do you mean by keywords in c?
Write a simple code fragment that will check if a number is positive or negative.
Write a program in c to replace any vowel in a string with z?
What is file in c preprocessor?
What is a pointer on a pointer in c programming language?
in programming languages a statement or part of a statement that specifies several different execution sequences a) constructs b) distructs c) executes d) none
What is a good data structure to use for storing lines of text?
What is an expression?
Why is %d used in c?
What is the advantage of an array over individual variables?
Here is a neat trick for checking whether two strings are equal
Which of the following operators is incorrect and why? ( >=, <=, <>, ==)
how can f be used for both float and double arguments in printf? Are not they different types?
What do header files do?
What are high level languages like C and FORTRAN also known as?