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 / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why do we use null pointer?

601


Is that possible to store 32768 in an int data type variable?

685


Linked list is a Linear or non linear explain if linear how it working as a non linear data structures

1756


What is data structure in c language?

599


How can this be legal c?

646






Explain how do you view the path?

647


if (i = 0)printf ("True"); elseprintf("False"); Under what conditions will the above print out the string "True" a) Never b) Always c) When the value of i is 0 d) all of the above

705


What does the c in ctime mean?

561


What is data structure in c and its types?

585


What is hash table in c?

562


Do you have any idea how to compare array with pointer in c?

595


the factorial of non-negative integer n is written n! and is defined as follows: n!=n*(n-1)*(n-2)........1(for values of n greater than or equal to 1 and n!=1(for n=0) Perform the following 1.write a c program that reads a non-negative integer and computes and prints its factorial. 2. write a C program that estimates the value of the mathematical constant e by using the formula: e=1+1/!+1/2!+1/3!+.... 3. write a c program the computes the value ex by using the formula ex=1+x/1!+xsquare/2!+xcube/3!+....

22183


What do the functions atoi(), itoa() and gcvt() do?

722


What is variable in c example?

590


What is boolean in c?

602