Special Operators in C

The special operators of interest such as comma operator,sizeof operator,pointer operator (& and *) and member selection operators(. and ->).

The Comma Operator

the comma operator can be used to link the related expression together.a comma-linked list of expressions are evaluted left to right and the value of right-most expression is the value of the combined expression

Example


value = (x=10,y=10,x+y);							
							

The sizeof Operator

The sizeof is a compile time operator and,when used with an operand,it returns the number of bytes the operand occupies.the operand may be a variable,a constant or a data type qualifier.

Example


a = sizeof(sum);							
							
Share Share on Facebook Share on Twitter Share on LinkedIn Pin on Pinterest Share on Stumbleupon Share on Tumblr Share on Reddit Share on Diggit

You may also like this!