By: Prem Tiwari | Last Updated:
sizeof() function is used to get the memory allocated size in C programming language. See the below example with the output.
Below example will explain the data types such as int, float, char… etc and it will return the memory allocated size of the data types. Copy the below code and execute in c compiler to see the data type size.
Prem Tiwari is the founder of FreeWebMentor.com and also a professional developer who has vast experience in PHP and open source technologies. Apart from this, he is a blogger by hobby and also he has been a regular speaker of WordPress sessions in various IT Companies. View all posts by Prem Tiwari