Question Bank (1 mark) · Q24
Q.What is the difference between ‘=’ and ‘==’?
Karnataka PUCTextbookShort· 1mImportance★★★★★est
73% · 113/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]
= assigns a value; == compares two values.
The single equals sign = is the assignment operator: a = 5 puts the value 5 into the variable a. The double equals sign == is a relational operator that tests equality: a == 5 checks whether a equals 5 and yields 1 (true) or 0 (false). Confusing the two is a common source …
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.