Special Operators in C Programming | Allinonetuts

Special Operators in C Programming

Several special operators are used in C Programming language such as:

  • Comma operator (, )
  • Size of operator
  • pointer operators (& and *)
  • member selection operators (. and ->)

Comma Operator:

Comma Operator is used to linking the related expressions together. The expressions using a comma to link each other are evaluated left to right and the rightmost expression is the value of the combined expression. These operators are used in for loops
or while loops. For example,

x = (a = 5, b = 5, a + b)

Read this to get full c programming tutorials

Size of Operator:

It is a compile time operator that returns the number of bytes occupied when used with an operand. The operand may be a variable, a constant or a data type qualifier.

For example,

a = size of (long int);

b = size of (total);

The size of operator is normally used to determine the length of an array or structure, when their sizes are not known to the programmer. It is also used during execution of a program to dynamically allocate memory to variables.

Hello Viewers,
welcome to the Allinonetuts a Technical tutorial and Programming Blog Maintained by Vikas Kardam, a Web Developer and Blogger From Delhi, India.
Explaining Special Operators in C Programming was last modified: July 11th, 2017 by Vikas Kardam
Submit your review

Create your own review

Average rating:  
 1 reviews

Nice Article

Leave a Reply

Your email address will not be published. Required fields are marked *