#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


Please Help Members By Posting Answers For Below Questions

Why string is used in c?

586


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

609


Is c procedural or object oriented?

585


What is bubble sort in c?

640


Define Array of pointers.

637






What is return type in c?

643


When c language was developed?

644


How can I do serial ("comm") port I/O?

693


explain what are pointers?

621


Explain the difference between malloc() and calloc() function?

604


State the difference between x3 and x[3].

655


Why is c called "mother" language?

861


How are pointers declared in c?

603


Does free set pointer to null?

566


Give the rules for variable declaration?

682