Skip to content
Question Bank (3 marks) · Q11

Q.Briefly explain bitwise operator.

Karnataka PUCTextbookShort· 3mImportance★★★★★est
37% · 57/154 Questions
🔒 Locked · start free trial →

You're viewing a preview — the full solution, concept, methods & PYQ mapping are locked.

Start your 14-day free trial to unlock the full solution →

[!TLDR]

Bitwise operators (&, |, ^, ~, <<, >>) manipulate the binary bits of integer data directly.

Bitwise operators work on data at the bit level - the operands are first taken in their binary form and the operation is carried out on each corresponding pair of bits. C provides:

  1. & (bitwise AND) - result bit is 1 only if both bits are 1.
  2. | (bitwise OR) - result bit is 1 if at least one bit is 1.
  3. ^ (bitwise exclusive-OR) - result bit is 1 only if the two bits differ.
  4. ~ (one's complement) - unary operator that inverts every bit.
  5. << (left shift) - shifts the bits left, filling zeros on the right. …

Unlock everything free for 14 days

  • Full step-by-step solutions
  • Concept-first explanations
  • Methods, shortcuts & mistakes
  • PYQ mapping + timed mock tests

Full access for 14 days. No credit card required.