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 / kalyan chukka
The Answer is Know c Because float having 7 digit numbers
and double having 15 digit number
float me=1.1 it stores like 0.99999
double you=1.099999999
so the Correct Answer is Know C
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
How can I read and write comma-delimited text?
What is this infamous null pointer, anyway?
Explain union. What are its advantages?
What is the meaning of ?
Is it possible to initialize a variable at the time it was declared?
How can you read a directory in a C program?
can any one provide me the notes of data structure for ignou cs-62 paper
What is a wrapper function in c?
write a program to find out prime number using sieve case?
When do you not use the keyword 'return' when defining a function a) Always b) Never c) When the function returns void d) dfd
How the c program is executed?
What are the types of operators in c?
What are dangling pointers? How are dangling pointers different from memory leaks?
What is const volatile variable in c?
What is function in c with example?