What is an assignment operator? Give example of its usage.
Answers
Answered by
4
an assignment operator is an operator which assigns a value to a variable.
eg -
1) = - it assigns a value to a variable
a = 45
ternery operators (?:) are called conditional assignment operator
eg -
1) = - it assigns a value to a variable
a = 45
ternery operators (?:) are called conditional assignment operator
Answered by
4
Assignment operator is the one who assigns a value to a variable.
EXAMPLE :- Let there is a variable "a"
Now the work of Assignment operator is to who assigns a value to this variable.
like it assigns → a = 87
----------------------------------------------------------------------------------------------------------------
Best of luck ;)
ROYALJATT
EXAMPLE :- Let there is a variable "a"
Now the work of Assignment operator is to who assigns a value to this variable.
like it assigns → a = 87
----------------------------------------------------------------------------------------------------------------
Best of luck ;)
ROYALJATT
Similar questions