Sizeof Operator in C Programming Language

sizeof() function is used to get the memory allocated size in C programming language. See the below example with the output.

Sizeof Operator in C

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.

Output

1
4
4
8

Recommended Posts:


Prem Tiwari

An engineer by profession and a passionate blogger by heart. Founder of FreeWebMentor.com (A Programming blog for beginners), Tech Speaker at various forums. A part from this he is an open source enthusiast, WordPress Lover, Blogger, SEO, and Growth Strategic.

Article Tags: , , , , ,

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Solved Programs