int a = 1; int b; int c; b = a || 1; // 1 b = !b; // 2 a = a || b; // 3 c = a && (a||b); //4
int a = 1; int b; int c; b = a || 1; // 1: 1 || 1 == 1 b = !b; // 2: !1 == 0 a = a || b; // 3: 1 || 0 == 1 c = a && (a||b); //4: 1 && (1||0) == 1
Login in to like
Login in to comment
or Read more about C++ Quizzes
Login in to like
Login in to comment