‘=’ is a?

‘=’ is a?
A. Relational operator
B. Arithmetic operator
C. Operational operator
D. Assignment operator
 
Answer: d
Explanation: p=2 assigns the value 2 to the variable p. Hence, ‘=’ is an assignment operator. It doesn’t perform arithmetic operations so it isn’t an arithmetic operator. It isn’t a relational operator unlike ‘==’.
 

Tìm kiếm

Back
Top