C Programming :: Increment-Decrement - Discussion
Home > C Programming > Increment-Decrement > MCQs Questions Discussion
1 / 45
What will be output of the following "c" code?
#include<stdio.h>
void main() {
int i=-1,j=-1,k=0,l=2,m;
m = i++ && j++ && k++ || l++;
printf("%d %d %d %d %d",i,j,k,l,m);
}
#include<stdio.h>
void main() {
int i=-1,j=-1,k=0,l=2,m;
m = i++ && j++ && k++ || l++;
printf("%d %d %d %d %d",i,j,k,l,m);
}
A0 0 1 3 1
B1 1 0 2 0
C2 2 1 3 1
DNone of these
E-1 -1 0 2 1
Answer: Option (Login/Signup)
Show Explanation
Asked In ::
TRICK
hello sir /madam,
is their any concept logical operator && has an equal to any of the arithmetic operators or i don't have proper understanding about to get the answer m=1 please can you explain
Read Full Answer
Report Error
Please Login First Click Here