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
Explain what happens if you free a pointer twice?
Explain how can I read and write comma-delimited text?
How can you be sure that a program follows the ANSI C standard?
What does printf does?
is it possible to create your own header files?
How can I generate floating-point random numbers?
What is the significance of an algorithm to C programming?
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
A program is required to print your biographic information including: Names, gender, student Number, Cell Number, line of study and your residential address.
What is the difference between array and structure in c?
Explain what is the concatenation operator?
What is structure padding in c?
How can I access an I o board directly?
What is the size of a union variable?
Is c compiled or interpreted?