-moz-user-select:none; -webkit-user-select:none; -khtml-user-select:none; -ms-user-select:none; user-select:none;

Friday, 17 April 2015

"Sizeof" operator

Hello and Asalam o Alikum. I hope you all are fine by the grace of Allah Almighty.
Today I am here with a program that explains the purpose of “sizeof” operator.

 "Sizeof" operator


The “sizeof” operator is used to find the size of any date value. It determines the number of bytes occupied by the value.
Its syntax is as follows:

 sizeof (operand) ;

Remember that the operand can be a variable or a constant.
Some examples of “sizeof” operator are discussed below:
sizeof(n);
sizeof(11);
sizeof(“Pakistan”);

sizeof(3.1416);

Below is the sample program of "sizeof" operator.

Source code


Output


No comments:

Post a Comment