What will be the output ?(&& is logical AND operation)
#include
int main()
{
int i=0,j=1;
printf("\n%d",i++&&++j); printf("\n%d%d",i,j);
return 0;
}
A)0
12
B)1
11
C)0
00
D)0
11
Answers
Answered by
1
Answer:
The option is A) O
12
Here first printf only i is printed as 0.
Next printf both incremented i, j are printed.
Similar questions