Language

Sizeof Operator in C Programming Language



Satish

http://technotip.com/7054/sizeof-operator-in-c-programming-language/

Lets write a C program to see how to use sizeof() method or function in C programming language.

sizeof() is a builtin method/function present in C programming. It is used to calculate the size(in bytes) that a datatype occupies in the computers memory.

sizeof() method takes a single argument and it is not a function whose value is determined at run time, but rather an operator whose value is determined by compiler – so it’s called as compile time unary operator.

sizeof() method can be used with primitive data type like int, float, char or user defined data types like structures, unions etc.

C Programming Interview / Viva Q&A List
http://technotip.com/6378/c-programming-interview-viva-qa-list/

C Programming: Beginner To Advance To Expert
http://technotip.com/6086/c-programming-beginner-to-advance-to-expert/ .

Source

Similar Posts

WP2Social Auto Publish Powered By : XYZScripts.com