&& is the logical AND and || is the logical OR , logical AND and logical OR are boolean -this is why they return 0 and 1.
But, i open this topic because my problem is that i don't understand how the result with operant & and | comes when we use integers?? how can i calculate the result ?
for example if we use
------example---------
C=20,D=18;
Y=C && D; // the result of Y = 16 , why? how can i calculate it ?
---------------------------------
if the question is stupid please tell me to know, thanks.