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 / smartmove

Correction in last answer:

float me=1.1 it stores like 1.0999
double you=1.09999999

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is spaghetti programming?

670


Tell us two differences between new () and malloc ()?

614


What is c language and why we use it?

623


What is the difference between mpi and openmp?

736


What is difference between && and & in c?

599






A global variable when referred to in another file is declared as this a) local variable b) external variable c) constant d) pointers

651


How can I send mail from within a c program?

581


What is structure and union in c?

602


How can I direct output to the printer?

813


Write a function which takes as parameters one regular expression(only ? and * are the special characters) and a string and returns whether the string matched the regular expression.

653


What is zero based addressing?

716


What is a stream?

651


How do you determine a file’s attributes?

602


What is s in c?

618


Differentiate between the = symbol and == symbol?

715