3C. Types

Java and C++ are examples of typed languages. In a typed language, every value has a type. In C++, an integer has type int and a real number has type double. (Type name double is awful, but we are stuck with it.)

In C++:

See more detail on numeric types, values and constants in C++.