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 |
#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);
}
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