'++' is higher precedence than binary operators.
++p--> it increments value befor execution of the current statement
p++ -->it increments value after the excution of current statement.
s=++p && ++q||r++ // here p and q are pre increments are r is post increment
++p=-2 and ++q=3.
in the AND gate both inputs are TRUE o/p is always 1.
No need of check OR gate because in this gate one i/p is 1 no need of checking 2nd i/p .o/p it is always 1.
s=1.
t=p+q+s++
t=-2+3+1
t=2 and s=2.
so 2,2 it prints the value.