C++ Program to Find Size of int, float, double and char in Your System
This program declares 4 variables of type int, float, double and char. Then, the size of each variable is evaluated using sizeof operator. To find the size of variable, sizeof operator is used. sizeof(dataType); Example: Find Size of a Variable Output Size of char: 1 byte Size of int: 4 bytes Size of float: 4 bytes…