#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 the use of printf() and scanf() functions?
Add Two Numbers Without Using the Addition Operator
What are nested functions in c?
Explain what standard functions are available to manipulate strings?
What are the two types of functions in c?
What is the difference between constant pointer and constant variable?
hai iam working in sap sd module for one year and working in lumax ind ltd in desp department but my problem is i have done m.b.a in hr/marketing and working sap sd there is any combination it. can you give right solution of my problem. and what can i do?
What is data structure in c language?
What is the code for 3 questions and answer check in VisualBasic.Net?
To print the pattern 1 2 3 4 5 10 17 18 19 6 15 24 25 20 7 14 23 22 21 8 13 12 11 10 9
Which is the best website to learn c programming?
plz let me know how to become a telecom protocol tester. thank you.
What is local and global variable in c?
Which operators cannot be overloaded a) Sizeof b) .* c) :: d) all of the above
How reliable are floating-point comparisons?