#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
Is void a keyword in c?
What is maximum size of array in c?
Explain what does the format %10.2 mean when included in a printf statement?
What is substring in c?
Which is better between malloc and calloc?
Explain what is output redirection?
Where local variables are stored in c?
What are the output(s) for the following ? #include char *f() {char *s=malloc(8); strcpy(s,"goodbye")} main() { char *f(); printf("%c",*f()='A'); }
What is difference between union All statement and Union?
Write a C program to count the number of email on text
Write a program to check armstrong number in c?
What Is The Difference Between Null And Void Pointer?
What is string in c language?
Can you please explain the difference between exit() and _exit() function?
Why do we use null pointer?