Important MCQ

The symbol = in C++ is the

Q.The symbol = in C++ is the

A) equality operator
B) assignment operator
C) comparison operator
D) logical operator
Correct Answer:
Option B
Detailed Explanation:
B) assignment operator is correct. A variable is a named memory location. Declare it with a data type before use; names cannot start with a digit or be keywords, and = assigns a value.