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


Please Help Members By Posting Answers For Below Questions

Which of the following operators is incorrect and why? ( >=, <=, <>, ==)

668


What is the meaning of typedef struct in c?

594


What is the use of volatile?

610


how to introdu5ce my self in serco

1522


I was asked to write a program in c which when executed displays how many no.of clients are connected to the server.

1907






How can I do serial ("comm") port I/O?

689


How do c compilers work?

611


Why is c platform dependent?

623


Differentiate between a for loop and a while loop? What are it uses?

675


What is identifier in c?

545


What standard functions are available to manipulate strings?

562


C program to find all possible outcomes of a dice?

1855


while loop contains parts a) initialisation, evalution of an expression,increment /decrement b) initialisation, increment/decrement c) condition evalution d) none of the above

740


What is an lvalue in c?

696


What does typedef struct mean?

662