View the Most Wanted LQ Wiki articles.
LinuxQuestions.org > Linux Wiki > Constant

From LQWiki

Jump to: navigation, search

A constant is a value that does not change. In many programming languages, variables can be made constant by preceding their declaration with the keyword "const".

const float pi = 3.1415926;

Attempting to modify a constant will result in an error.


Personal tools