#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
When can a far pointer be used?
What are the storage classes in C?
Explain what does the characters 'r' and 'w' mean when writing programs that will make use of files?
How can you avoid including a header more than once?
What are local static variables? How can you use them?
Write a program to replace n bits from the position p of the bit representation of an inputted character x with the one's complement. Method invertBit takes 3 parameters x as input character, p as position and n as the number of positions from p. Replace n bits from pth position in 8 bit character x. Then return the characters by inverting the bits.
What is the use of getchar functions?
Are enumerations really portable?
What are conditional operators in C?
Where in memory are my variables stored?
Dont ansi function prototypes render lint obsolete?
Which is an example of a structural homology?
Why is c still so popular?
What is pre-emptive data structure and explain it with example?
what is the differnce between programing langauge and tool? is sas is a programing langauge r tool?