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
Why do we use null pointer?
Is that possible to store 32768 in an int data type variable?
Linked list is a Linear or non linear explain if linear how it working as a non linear data structures
What is data structure in c language?
How can this be legal c?
Explain how do you view the path?
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
What does the c in ctime mean?
What is data structure in c and its types?
What is hash table in c?
Do you have any idea how to compare array with pointer in c?
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!+....
What do the functions atoi(), itoa() and gcvt() do?
What is variable in c example?
What is boolean in c?