Constant variables

A constant variable is defined by const kwyword and can not be modified later. Example :

Example

#include <iostream>

int main() {
	const int a = 20; // initialization is compulsory at declaration time
	std::cout << a;

	a = 100; // will give error

	getchar();
	return 0;
}