#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
1.int a=10; 2.int b=20; 3. //write here 4.b=30; Write code at line 3 so that when the value of b is changed variable a should automatically change with same value as b. 5.
Define and explain about ! Operator?
Explain why can’t constant values be used to define an array’s initial size?
what are the program that using a two dimensional array that list the odd numbers and even numbers separately in a given 10 inputs values
What are c header files?
What is the use of define in c?
Why is python slower than c?
int far *near * p; means
What is cohesion in c?
Write a program to implement a round robin scheduler and calculate the average waiting time.Arrival time, burst time, time quantum, and no. of processes should be the inputs.
What is structure in c explain with example?
What are the advantages of using Unions?
Where are c variables stored in memory?
Why should I prototype a function?
Explain what is the difference between a string and an array?