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
What are the key features in c programming language?
What is nested structure?
What is the difference between text and binary modes?
What does a function declared as pascal do differently?
How can a program be made to print the name of a source file where an error occurs?
Should a function contain a return statement if it does not return a value?
Explain how can I convert a number to a string?
What does the error 'Null Pointer Assignment' mean and what causes this error?
An organised method of depicting the use of an area of computer memory used to signify the uses for different parts of the memory a) swap b) extended memory c) memory map d) all of the above
What is the scope of an external variable in c?
How can I read and write comma-delimited text?
Why is c called c not d or e?
How can I handle floating-point exceptions gracefully?
Why string is used in c?
Is malloc memset faster than calloc?