C Programming :: Loop Control - Discussion
Home > C Programming > Loop Control > MCQs Questions Discussion
4 / 61
What is the output of the following program ?
#include <stdio.h>
int main()
{
int i,j;
i = j =2;
while ( --i && j++)
printf("%d %d",i,j);
return 0;
}
#include <stdio.h>
int main()
{
int i,j;
i = j =2;
while ( --i && j++)
printf("%d %d",i,j);
return 0;
}
A2 3
B0 3
C1 3
DInfinite Loop
Answer: Option (Login/Signup)
Show Explanation