Manthan OOP
Manthan OOP
C Language C++
• C was developed by Dennis Ritchie between the year • C++ was developed by Bjarne Stroustrup in 1979.
1969 and 1973 at AT&T Bell Labs.
POP OOP
• Constants in C++ are the tokens that are defined at the time
of initialization and the assigned value cannot be altered or
updated after that. The #define preprocessor directive and
the 'const' keyword are the two methods to define a
constant. The value stored in a constant variable is known as
a literal.
• Example:- In C++, we can create variables whose value
cannot be changed. For that, we use the const keyword.
Here's an example: const int LIGHT_SPEED = 299792458;
LIGHT_SPEED = 2500 // Error!
Variables