Example(s):Palindrome, prime, armstrong, "linear search", reverse etc.

Example(s):1575, 1632, 1539 (Only one at a time)

Login

[lwa]

Code Learning
#CPP#1426

Finding Size of CPP Data Types

program shows use of sizeof operator to display the storage size of different data types

Source Code

TC++ #1426

Source Code

Run Output

Size of boolean is 1
Size of char is 1
Size of wchar_t is 2
Size of char16_t is 2
Size of char32_t is 4
Size of int is 4
Size of short int is 2
Size of long int is 4
Size of long long int is 8
Size of float is 4
Size of double is 8
Size of long double is 12