Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

*= operator

“*=”: This operator is a combination of ‘*’ and ‘=’ operators. This operator 
first multiplies the current value of the variable on left to the value on the
right and then assigns the result to the variable on the left. 
(a *= b) can be written as (a = a * b)

If initially, the value stored in a is 5. Then (a *= 6) = 30.
 
PREVIOUS NEXT
Tagged: #operator
ADD COMMENT
Topic
Name
4+5 =