0
756views
What is an Assignment Operators?

Subject : Structured Programming Approach

Title : Fundamental of C Programming

Marks : 2M

1 Answer
0
0views

The usual assignment operator is ‘=’.In addition, C has a set of ‘shorthand’ assignment operators of the form, v op = exp;

Eg: x += y+1;

This is same as the statement

x=x+(y+1);

Shorthand Assignment Operators

a + =1

a -= 1

a *= n + 1

a /= n + 1

a %= b

Please log in to add an answer.