Special Operators in C Programming language
Notes:
Special Operators in C Programming language :
C provides set of special operators; which are used in special cases
sizeof operator:
- is used to get size of a given operand in bytes
Comma operator (,):
- is used to group related expressions together
Address of (or Referencing) operator (&):
- is used to get address (or reference) of a variable, a constant or some memory location
Dereferencing (or Pointer) operator (*):
- is used to create a variable; which holds the address of another memory location (i.e. a pointer)
- is used to create a pointer to a variable, a constant or some memory location
Double Dereferencing (or Double pointer) operator (**):
- is used to create a pointer; which holds the address of another pointer variable
- is used to create a pointer to a pointer variable
Member access operators: Dot & Arrow operators
Dot operator (.):
- is used to access members of a structure or an union directly
Arrow operator (->):
- is used to access members of a structure or an union through a pointer variable