#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


Please Help Members By Posting Answers For Below Questions

What is the use of printf() and scanf() functions?

640


Add Two Numbers Without Using the Addition Operator

357


What are nested functions in c?

568


Explain what standard functions are available to manipulate strings?

614


What are the two types of functions in c?

573






What is the difference between constant pointer and constant variable?

752


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?

1667


What is data structure in c language?

611


What is the code for 3 questions and answer check in VisualBasic.Net?

1696


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

2195


Which is the best website to learn c programming?

585


plz let me know how to become a telecom protocol tester. thank you.

1745


What is local and global variable in c?

620


Which operators cannot be overloaded a) Sizeof b) .* c) :: d) all of the above

664


How reliable are floating-point comparisons?

632