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

love c

Is This Answer Correct ?    4 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why is a semicolon (;) put at the end of every program statement?

628


Given only putchar (no sprintf, itoa, etc.) write a routine putlong that prints out an unsigned long in decimal. [ I gave the obvious solution of taking % 10 and / 10, which gives us the decimal value in reverse order. This requires an array since we need to print it out in the correct order. The interviewer wasn't too pleased and asked me to give a solution which didn't need the array ].

644


What are the disadvantages of c language?

622


Can a pointer be static?

625


what are the advanced features of functions a) function declaration and prototypes b) calling functions by value or by reference c) recursion d) all the above

677






What is an lvalue in c?

696


What is header file in c?

604


Explain what are global variables and explain how do you declare them?

643


What is typedf?

670


Why do we use c for the speed of light?

605


How can I dynamically allocate arrays?

594


What is the difference between functions abs() and fabs()?

651


What is a header file?

638


What are variables c?

621


What are types of preprocessor in c?

617