About 4,980,000 results
Open links in new tab
  1. Constants in C++ - GeeksforGeeks

    Jul 23, 2025 · In C++, const is a keyword used to declare a variable as constant, meaning its value cannot be changed after it is initialized. It helps protect important values from accidental …

  2. Constants - C++ Users

    These are numerical constants that identify integer values. Notice that they are not enclosed in quotes or any other special character; they are a simple succession of digits representing a …

  3. C++ Constants - Programiz

    The C++ const keyword is used to specify that the value of a variable cannot be changed. In this tutorial, you will learn about C++ constants with the help of examples.

  4. Constants and literals - cppreference.com

    Oct 28, 2014 · Constants and literals Warning: This wiki is part of the deprecated and unmaintained CppReference Book project. For up-to-date information on C++, see the main …

  5. C++ Constants/Literals - Online Tutorials Library

    Defining Constants There are two simple ways in C++ to define constants − Using #define preprocessor. Using const keyword. The #define Preprocessor Following is the form to use …

  6. C++ Constants - W3Schools

    Constants are like a variable except that once defined, their value never changes during the program's execution. In this tutorial, you will learn about Constants in C++.

  7. C++ Constant Variables - W3Schools

    Constants When you do not want others (or yourself) to change existing variable values, use the const keyword (this will declare the variable as "constant", which means unchangeable and …

  8. Constants In C++ - Software Testing Help

    Apr 1, 2025 · In this tutorial, Constants In C++ are explained in detail along with their types and simple examples for easy understanding. Constants are advantageous when we want to …