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
Why is a semicolon (;) put at the end of every program statement?
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 ].
What are the disadvantages of c language?
Can a pointer be static?
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
What is an lvalue in c?
What is header file in c?
Explain what are global variables and explain how do you declare them?
What is typedf?
Why do we use c for the speed of light?
How can I dynamically allocate arrays?
What is the difference between functions abs() and fabs()?
What is a header file?
What are variables c?
What are types of preprocessor in c?