c++ function data types code example
Example 1: Data Types in C++
Data types in c++
Built-in User Defined Derived
---------- ----------- ------------
void, int, structure, array,
char, float, union, function,
double, bool, enum, pointer,
long long class, reference
Wide Character typedef
Example 2: data types in c++
int myNum = 5; // Integer (whole number)
float myFloatNum = 5.99; // Floating point number
double myDoubleNum = 9.98; // Floating point number
char myLetter = 'D'; // Character
bool myBoolean = true; // Boolean
string myText = "Hello"; // String