main()
{
float a=8.8;
double b=8.8;
if(a==b)
printf("Equal");
else
printf("not equal");
getch();
}
what is the output?
with reason
Answer Posted / hema
If i want to compare the value stored in float and double,
how do i do that? I tried typecasting i,e.,
if (a==float(b))
printf("Equal");
else
printf("not equal");
Even then it say, not equal. How to overcome this problem?
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
how to print the character with maximum occurence and print that number of occurence too in a string given ?
a construct the"else" part of "if" statement contains anoth "if else" statement is called a) if-else b) else-if-else c) if-else-if-else d) chain if/if-else-if
console I/O functions means a) the I/O operations done on disk b) the I/O operations done in all parts c) the input given through keyboard is displayed VDU screen d) none of the above
What is the difference between declaring a variable by constant keyword and #define ing that variable?
how do you execute a c program in unix.
What is time null in c?
If I have a char * variable pointing to the name of a function ..
What is null pointer in c?
What is use of null pointer in c?
In c programming language, how many parameters can be passed to a function ?
When was c language developed?
What are the different types of objects used in c?
please send me the code for multiplying sparse matrix using c
What is quick sort in c?
Do string constants represent numerical values?