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 / smartmove
Correction in last answer:
float me=1.1 it stores like 1.0999
double you=1.09999999
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
what is the height of tree if leaf node is at level 3. please explain
Write a program to identify if a given binary tree is balanced or not.
write a programming in c to find the sum of all elements in an array through function.
Can main () be called recursively?
What are the 3 types of structures?
What are the different types of data structures in c?
What is static function in c?
How old is c programming language?
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 is the meaning of typedef struct in c?
How pointers are declared?
What is strcmp in c?
What is the default value of local and global variables in c?
What are the types of pointers in c?
What is the difference between constant pointer and constant variable?