#include<conio.h>
#include<stdio.h>
void main()
{
int i;
if(1,0,2,3)
{
printf("if");
}
else
{
printf("else");
}
getch();
}
Can any body tell the answer of this question with explanation?
Answer Posted / prateek songara
By default "i" will posses the value 2 bcoz of "int" and when it moves to "if" it will check all the values matches with its value (1,0,2,3) and if he gets the match then it will print the "if" ..else it will print the "else"..........hope you got the answer now.
| Is This Answer Correct ? | 1 Yes | 4 No |
Post New Answer View All Answers
What are lookup tables in c?
Explain what is a pragma?
What is sizeof c?
about c language
Do character constants represent numerical values?
Explain how does flowchart help in writing a program?
i = 25;switch (i) {case 25: printf("The value is 25 ");case 30: printf("The value is 30 "); When the above statements are executed the output will be : a) The value is 25 b) The value is 30 c) The value is 25 The value is 30 d) none
How do I use strcmp?
Do pointers take up memory?
show how link list can be used to repersent the following polynomial i) 5x+2
how can f be used for both float and double arguments in printf? Are not they different types?
Write a program in "C" to calculate the root of a quadratic equation ax^2+bx+c=0, where the value of a,b & c are known.
Why is c called c not d or e?
How can you determine the maximum value that a numeric variable can hold?
What is an endless loop?