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");
}
Answers were Sorted based on User's Feedback
Answer / revathi pawar
know c is the answer because float and double r not same
the memory allocation differs so know c will b printed
| Is This Answer Correct ? | 10 Yes | 2 No |
Answer / anuradha
know c because do not compare float and double values
| Is This Answer Correct ? | 6 Yes | 0 No |
Answer / sangeetha
the answer for the above code will be know c because else
part is printed because float and double is not same
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / 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 |
Answer / 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 |
What is the acronym for ansi?
Is the below things valid & where it will be stored in memory layout ? static const volatile int i; register struct { } ; static register;
write a program of bubble sort using pointer?
a character or group of characters that defines a register,or a part of storage a) memory b) byte c) address d) linear list
What is clrscr ()?
What is the c value paradox and how is it explained?
how to find a 5th bit is set in c program
Tell me what are bitwise shift operators?
Ca some one please help me with aC code to allow user enter numbers from 1 to 20 without repeating and prnt the sum of those numbers thnx
How the processor registers can be used in C ?
Explain how do you sort filenames in a directory?
How do you print an address?