Question Bank (1 mark) · Q25
Q.What is description of the following operator ‘^=’?
Karnataka PUCTextbookShort· 1mImportance★★★★★est
76% · 117/154 Questions
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]
^= means "XOR then assign": a ^= b is a = a ^ b.
The ^= operator is a compound assignment operator. It performs a bitwise exclusive-OR between the variable and the right-hand operand, then stores the result back in the variable. So a ^= b is a shorthand for …
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.