#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
Explain what is the benefit of using #define to declare a constant?
What is typeof in c?
Can we initialize extern variable in c?
What is the difference between mpi and openmp?
How do I convert a string to all upper or lower case?
Write a program to print factorial of given number using recursion?
What is the difference between printf and scanf )?
Stimulate calculator using Switch-case-default statement for two numbers
A text file that contains declarations used by a group of functions,programs,or users a) executable file b) header file c) obj file d) .cfile
Write a C program to accept a matrix of any size. Find the frequency count of each element in the matrix and positions in which they appear in the matrix
Can two or more operators such as and be combined in a single line of program code?
What is an expression?
What is pivot in c?
How can I write functions that take a variable number of arguments?
Can a variable be both static and volatile in c?