C Programming Language

sizeof operator

            The sizeof operator returns the size of its operand in bytes. The sizeof operator always precedes its operand. The operand may be an expression or it may be a cast.


            Suppose i is an integer variable and c is a character type variable then

Printf(“Size of integer : %d”,sizeof(i));
Printf(“Size of character : %c”,sizeof(c));

Might generate the following output :
Size of integer : 2
Size of character : 1


sizeof operator
Unary operators Home Cast operator

Melbourne Nursing Agency jobs in Australia : Melbourne Nursing Agency jobs Palliative care nurse melbourne Home nursing care Melbourne in Australia
Custom ERP Developers Melbourne Custom ERP Developers in Melbourne in Australia

c program stats