Discussion Forum : Control Structures
Question - What will be the output of given program?
#include
void main()
{
int i=1, j=-1;
if((printf("%d", i)) < (printf("%d", j)))
printf("%d", i);
else
printf("%d", j);
}
Options:
A .  1 -1 1
B .  1 -1 -1
C .  1
D .  -1
E .  complier error
Answer: Option A

Submit Your Solution Below and Earn Points !
Next Question
Submit Your Solution hear:

Your email address will not be published. Required fields are marked *