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
When should the register modifier be used? Does it really help?
Explain continue keyword in c
Write a program to implement a round robin scheduler and calculate the average waiting time.Arrival time, burst time, time quantum, and no. of processes should be the inputs.
When should a far pointer be used?
I need a help with a program: Write a C program that uses data input in determining the whole of points A and a whole of circles B. Find two points in A so that the line which passes through them, cut through the maximum number of circles.
a number whose only prime factors are 2,3,5, and 7 is call humble number,,write a program to find and display the nth element in this sequence.. sample input : 2,3,4,11,12,13, and 100.. sample output : the 2nd humble number is 2,the 3rd humble number is 3,the 4th humble number is ,the 11th humble number is 12, the 12th humble number is 14, the 13th humble number is 15, the 100th humble number is 450.
Lists the benefits of c programming language?
What is array in c with example?
What is pointer to pointer in c with example?
Explain the difference between null pointer and void pointer.
What does do in c?
What is the collection of communication lines and routers called?
How variables are declared in c?
Explain the use of #pragma exit?
What does the message "automatic aggregate intialization is an ansi feature" mean?