constants in c programming
Constants: - A constant is a value that cannot be changed during the execution of the program. It is fixed, and once defined, its value cannot be modified by the program. A constant can be a number, a character, or a string. Constants are used to store values that must stay the same throughout the program. We can use constants for values like integers, floating-point numbers, characters, or enumeration values. A constant can belong to any data type, like int, float, or char. Syntax: const data_type variable_name; (or) const data_type *variable_name; Types of C constants: C constants are mainly classified into two categories: 1. Primary Constants 2. Symbolic Constants 1) Primary Constants: - The primary constants are: ...