ExamVeda
Login
Home
Operators and Expressions
?

What is the result of the expression 1 && 0 in C?

Answer & Solution
Correct Answer: Option B
In C, the && operator is the logical AND operator. It returns 1 (TRUE) if both operands are true (non-zero), and 0 (FALSE) if any of the operands is false (zero). In this expression, the second operand is 0, which is false. Therefore, the result of the expression is 0 (FALSE).

Option A (1) is incorrect because the result of the expression is 0, not 1.
Option C (TRUE) represents the true value, but the result of the expression is 0 (FALSE).
Option D (FALSE) represents the false value, which is the correct result of the expression.
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.