A variable can be assigned a value by using an assignment operator
- Shorthand is of the form op1 op= op2
- Where op1 and op2 are operands
- op= is a shorthand assignment operator
Example
a/=2 is equivalent to a=a/2
The assignment operators in C include,
Views: 1