Question:

Match the C operators with their meaning.

Show Hint

\[ ^ \rightarrow \text{Bitwise XOR} \] \[ | \rightarrow \text{Bitwise OR} \] \[ || \rightarrow \text{Logical OR} \] \[ \sim \rightarrow \text{One's Complement} \]
Updated On: Jun 25, 2026
  • P-I, Q-II, R-III, S-IV
  • P-II, Q-I, R-III, S-IV
  • P-II, Q-III, R-IV, S-I
  • P-III, Q-II, R-IV, S-I
Show Solution
collegedunia
Verified By Collegedunia

The Correct Option is A

Solution and Explanation

Concept: C language provides several bitwise and logical operators. Important operators are: \[ ^ \rightarrow \text{Bitwise XOR} \] \[ | \rightarrow \text{Bitwise OR} \] \[ || \rightarrow \text{Logical OR} \] \[ \sim \rightarrow \text{One's Complement} \]

Step 1:
Identify Bitwise XOR.
Bitwise XOR operator is \[ ^ \] Thus \[ P \rightarrow I \]

Step 2:
Identify Bitwise OR.
Bitwise OR operator is \[ | \] Thus \[ Q \rightarrow II \]

Step 3:
Identify Logical OR.
Logical OR operator is \[ || \] Thus \[ R \rightarrow III \]

Step 4:
Identify One's Complement.
One's complement operator is \[ \sim \] Thus \[ S \rightarrow IV \]

Step 5:
Write the final answer.
Hence \[ P-I,\quad Q-II,\quad R-III,\quad S-IV \] Therefore option (A) is correct.
Was this answer helpful?
0
0