C++ Basics Tutorial 5. Constants. Literal Constants Defined Constants Declared Constants. Topics Covered. Most easy to see and most obvious constants. Literal constants. Integer Numerals Floating-Point Numerals Boolean literals Character literals String literals.
Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.
C++ Basics Tutorial 5
All represent same number
5.97e24(Mass of earth) = 5.97 x 10 ^ 24
or 1.67e-27(Mass of proton) = 1.67 x 10 ^ -27
#define PI 3.14159
#define NEWLINE ‘\n’
constint a = 23;
const char newline = ‘\n’