Assignment Operators in C - C Reference

C examples for Reference:Language Reference

Introduction

Operator Example Expanded Version, if any
=var = expr No expansion
+= var += expr var = var + expr
-= var -= expr var = var - expr
*= var *= expr var = var * expr
/= var /= expr var = var / expr
%= var %= expr var = var % expr
&= var &= expr var = var & expr
|= var |= expr var = var | expr
^= var ^= expr var = var ^ expr
>>= var >>= exprvar = var >> expr
<<= var <<= exprvar = var << expr

Related Tutorials