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
Which of the following operators is incorrect and why? ( >=, <=, <>, ==)
What is the meaning of typedef struct in c?
What is the use of volatile?
how to introdu5ce my self in serco
I was asked to write a program in c which when executed displays how many no.of clients are connected to the server.
How can I do serial ("comm") port I/O?
How do c compilers work?
Why is c platform dependent?
Differentiate between a for loop and a while loop? What are it uses?
What is identifier in c?
What standard functions are available to manipulate strings?
C program to find all possible outcomes of a dice?
while loop contains parts a) initialisation, evalution of an expression,increment /decrement b) initialisation, increment/decrement c) condition evalution d) none of the above
What is an lvalue in c?
What does typedef struct mean?