Whenever expressions are connected together using the logical operators &&(AND) or || (OR), only as many expressions as are needed to determine the overall logical value will be evaluated. This is known as short-circuit behavior. For example, if two expressions are connected with && and the first expression is false, then it is guaranteed that the second expression will not be evaluated. The same is true of expressions connected with || where the first expression is true.
Write the output of the following C code segment.
<!--[if !supportLineBreakNewLine]-->
<!--[endif]-->

int i, j;

i = 2 && (j = 2);            /* what is printed */

printf(“%d  %d\n”, i, j);

(i = 0) && (j = 3);

printf(“%d  %d\n”, i, j);

i = 0 || (j = 4);

printf(“%d  %d\n”, i, j);

(i = 2) || (j = 5);              

printf(“%d  %d\n”, i, j);


형들... 이거 뭐 하라는거죠?