Computer Science for IGCSE & O level - Programming (Section 8 - No. 48)
What is the difference between '==' and '=' in programming?
They are interchangeable.
'==' is for assignment, '=' is for comparison.
'==' is for comparison, '=' is for assignment.
Both are for comparing two values.
Explanation
'==' is for equality comparison, and '=' is for assignment.
Comments (0)
