^=   Assignment Operators in C, Bitwise inclusive OR and assignment operator.

C Programming Language Operators and Enums in C Language (Article) Operators and Enums in C Language (Program)

931

Program:

//Assignment operator 

#include"stdio.h"
void main() {
 
   int c = 0 ;
   c |= 2;
   printf(" |=  Operator Example\n Value of c = %d \n", c );
} 

Output:

 |=  Operator Example
 Value of c = 2
Press any key to continue . . .

This Particular section is dedicated to Programs only. If you want learn more about C Programming Language. Then you can visit below links to get more depth on this subject.