Which of these is a logical operator in C?
-
A
+
-
B
&&
Correct answer
-
C
%
-
D
=
9 views
Explanation
&& is the logical AND operator. + and % are arithmetic, and = is assignment. Logical operators combine conditions in if statements.
Reference
Asked in: Matric,FBISE
Doubts & discussion
Not sure why the answer is B? Ask here and get an explanation.
Ask a doubt about this MCQ