C++ program to find the size of data types
kw.cpp
Output
kodingwindow@kw:~$ g++ kw.cpp
kodingwindow@kw:~$ ./a.out ——————————————————————————————————————————— Program to print the size of data types ——————————————————————————————————————————— The size of int | 4 The size of float | 4 The size of short | 2 The size of double | 8 The size of long | 8 The size of char | 1 The size of bool | 1 The size of NULL | 8 The size of wchar_t | 4 Size of long int | 8 Size of short int | 2 Size of long double | 16 Size of signed int | 4 Size of unsigned int | 4 Size of signed char | 1 Size of unsigned char | 1 Size of long signed int | 8 Size of long unsigned int| 8 ——————————————————————————————————————————— kodingwindow@kw:~$
What Next?
C++ program to find the range of data types
Find the output of C++ programs
C++ Control Statements
Advertisement