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

know c because do not compare float and double values

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain what happens if you free a pointer twice?

613


Explain how can I read and write comma-delimited text?

658


How can you be sure that a program follows the ANSI C standard?

1130


What does printf does?

747


is it possible to create your own header files?

642






How can I generate floating-point random numbers?

608


What is the significance of an algorithm to C programming?

596


any restrictions have on the number of 'return' statements that may be present in a function. a) no restriction b) only 2 return statements c) only 1 return statements d) none of the above

660


A program is required to print your biographic information including: Names, gender, student Number, Cell Number, line of study and your residential address.

1252


What is the difference between array and structure in c?

571


Explain what is the concatenation operator?

628


What is structure padding in c?

628


How can I access an I o board directly?

624


What is the size of a union variable?

601


Is c compiled or interpreted?

667