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

the answer for the above code will be know c because else
part is printed because float and double is not same

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are identifiers and keywords in c?

574


Can you write the function prototype, definition and mention the other requirements.

664


can any one please explain, how can i access hard disk(physical address)? it is possible by the use of far,near or huge pointer? if yes then please explain......

1412


Explain the array representation of a binary tree in C.

729


How are 16- and 32-bit numbers stored?

725






What is a lvalue

665


How is actual parameter different from the formal parameter?

592


What is the use of f in c?

560


What is p in text message?

541


my project name is adulteration of chille powder.how can i explain it to the hr when he asks me about the project?

1122


What does the message "automatic aggregate intialization is an ansi feature" mean?

695


Is there any possibility to create customized header file with c programming language?

627


What does calloc stand for?

652


how to find anagram without using string functions using only loops in c programming

2719


What is the use of ?

627