Computer Science for IGCSE & O level - Programming (Section 15 - No. 14)

What is the purpose of the assignment operator (e.g., '=') in most programming languages?
To compare two values for equality.
To declare a new variable.
To assign a value to a variable.
To perform mathematical calculations.

Explanation

The assignment operator is used to give a value to a variable.

Comments (0)

Advertisement