About 2,680,000 results
Open links in new tab
  1. Constants in C - GeeksforGeeks

    Nov 1, 2025 · In C programming, const is a keyword used to declare a variable as constant, meaning its value cannot be changed after it is initialized. It is mainly used to protect variables from being …

  2. Constants in C Explained – How to Use #define and the const ...

    Oct 26, 2021 · Head on to the next section to modify the previous example using const. How to Declare Constants Using const Qualifier Example From the previous example, you have the constants …

  3. Declare variable as constant in C - Online Tutorials Library

    The const keyword Variables can be declared as constants by using the “const” keyword before the datatype of the variable. The constant variables can be initialized once only. The default value of …

  4. C Constants - W3Schools

    Notes On Constants When you declare a constant variable, it must be assigned with a value:

  5. Constants in C Language (With Examples)

    Learn about Constants in C Language with examples. Understand their types, uses, and syntax to enhance your C programming skills effectively.

  6. Constant In C | Types, Syntax, Uses (Explained With ... - Unstop

    In C programming, a constant is a value that does not change during the execution of a program. In simple terms, constants in C language are variables whose values are set once and cannot be …

  7. How to Define Constants in C Using #define and const Keyword

    Learn how to define constants in C programming using two main methods: the #define preprocessor directive and the const keyword. This guide explains their uses, differences, and practical examples …

  8. C Constants: Using #define and const - CodeLucky

    The const keyword in C is used to declare constants that are typed and have a specific scope. Unlike #define, const variables are recognized by the compiler and type-checked.