What is the output for the below program?
void main()
{
float me=1.1;
double you=1.1;
if(me==you)
printf("love c");
else
printf("know c");
}
Answer Posted / kalyan chukka
The Answer is Know c Because float having 7 digit numbers
and double having 15 digit number
float me=1.1 it stores like 0.99999
double you=1.099999999
so the Correct Answer is Know C
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
How will you find a duplicate number in a array without negating the nos ?
Why are all header files not declared in every c program?
What are categories used for in c?
How do I convert a string to all upper or lower case?
Can math operations be performed on a void pointer?
How can you allocate arrays or structures bigger than 64K?
What does typeof return in c?
Is there any possibility to create customized header file with c programming language?
What is the explanation for the dangling pointer in c?
How do you search data in a data file using random access method?
What is the purpose of the statement: strcat (S2, S1)?
how can I convert a string to a number?
Why do we use null pointer?
What does c mean?
Tell me is null always defined as 0(zero)?