What are the different ways to define constants in the C programming language?
- Integral constants are defined using integer literals such as 10, -5, etc.
- Floating-point constants are defined using floating-point literals, such as 3.14, -0.5, and so on.
- Character constants are defined within single quotes, such as ‘x’ and ‘A’.
- String constant: a sequence of characters enclosed in double quotation marks, such as “Hello, World!”.
- Symbolic constants are defined using the #define preprocessor directive, such as #define PI 3.14159.