75.3k views
4 votes
In C++ the = operator indicates:

equality

assignment

subtraction

negation

1 Answer

6 votes

Answer:

The correct answer for the given question is " assignment"

Step-by-step explanation:

In c++ = is an assignment operator .The assignment which is used to assign the value to the variable.

For example

int a=9;

The variable a is assign integer value 9

The equality operator are (==) and != so this option is wrong

Subtraction are arithmetic operator so this option is wrong

The negation operator is (!) so this option is wrong

So the correct answer is assignment.

User Fredrik Ljung
by
6.9k points