#include<stdio.h>
int main()
{ int i=0,j=1,k=2,m,n=0;
m=i++&&j++&&k++||n++;
printf("%d,%d,%d,%d,%d",i,j,k,m,n);
}
Answer Posted / manish soni tagore collage jai
m=i++&&j++&&k++||n++;
in this expression
first
m=0++&&...........
from rule of && opr c1&&c2
if c1 is 0(FLASE) it don't chacke the next expression
so
m=0---------------(1);
after this
m=i++&&j++&&k++||n++;
-----------------------
m=i++&&j++&&k++ is flase so only i is increase by and j and
k not effect.
-------------------------------
after that
in ||(OR )OPR
C1||C2
IF C1 IS 0(FALSE) THEN IT CHECK THE C2
m=i++&&j++&&k++(C1)||n++(C2);
THEN C1 IS 0 and c2 is 0++ is 1 so true.
so answer is
1,same,same,0,i,
| Is This Answer Correct ? | 4 Yes | 4 No |
Post New Answer View All Answers
What is void c?
Why is c called a mid-level programming language?
What is memory leak in c?
What is the size of a union variable?
How do you override a defined macro?
What is the stack in c?
Why do we use int main instead of void main in c?
Compare and contrast compilers from interpreters.
writ a program to compare using strcmp VIVA and viva with its output.
What is external variable in c?
Can a pointer be volatile in c?
how many types of operators are include in c language a) 4 b) 6 c) 8 d) 12
Is c a great language, or what?
What is difference between && and & in c?
What is c value paradox explain?