C++ sizeof Operator Program Example

In this C++ programming practical tutorial we will see sizeof Operator Program Example in C++. sizeof operator is used to get the size in bytes of different datatypes in C++ e.g. int, double, float etc.

sizeof Operator Program Example in C++
Output
Size of char: 1
Size of int: 4
Size of float: 4
Size of double: 8

Leave a Reply

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