Title here
Summary here
Our first example demonstrates how to work with constants, character, string, boolean, and numeric values.
To run this program, compile the code and then execute the binary.
This example covers the basics of using constants in C++. Constants can be declared using the const
keyword. Arithmetic with constants is performed with arbitrary precision, and a numeric constant has no type until it is given one, such as by an explicit conversion. The last part demonstrates how to use a number in a context that requires a specific type, for example, in a function call to sin
which expects a double
.