C++ Data Type const
C++ examples for Data Type:const
HOME
C++
Data Type
const
Description
Click the following links for the tutorial for Data Type and const.
C++ Predefined Constants
Using Constants for Permanent Values That Do Not Change
Passing a const Pointer
Ensuring That a Function Doesn't Modify an Argument
Using a properly initialized constant variable.
Attempting to modify a constant pointer to constant data.
Attempting to modify a constant pointer to nonconstant data.
Attempting to modify data through a nonconstant pointer to constant data.
Create const string reference parameter
Defining Variables with Fixed Values
Use const to define PI value
Compare int value with constant value