Google News
logo
Special operators In C Language
Below are the some important special operators in c language
Operators Description
Comma, Comma operators are used to link related expressions together.
& This is used to get the address of the variable
* This is used as pointer to a variable
sizeof() This gives the size of the variable
  Program : A program to illustrate the use of Special Operators.
#include<stdio.h>
 void  main ()
    {  
int x = 2;
     float y = 2;
     printf (“  in  size of ( x ) is  %d bytes “,  sizeof  ( x ));
     printf (“  in   size of ( y ) is  %d bytes “,  sizeof  ( y ));
     printf (“  in   Address of  x = % u and y = % u “, & x, & y);
    }    
Output :

in size of ( x ) is 2 bytes
in size of ( y ) is 4 bytes
in Address of x = 37814108 and in Address of x =37814104