DIZNR INTERNATIONAL

Type of C Contants- part 6

Type of C Contants- part 6

https://www.gyanodhan.com/video/7A2.%20Computer%20Science/Let%20Us%20C%20Programming/184.%20Let%20Us%20C%20by%20Yashavant%20P.%20Kanetkar%20-%20Type%20of%20C%20Contants-%20part%206.mp4

Types of Constants in C (Part 6)

In the C programming language, constants are fixed values that do not change during program execution. Constants can be classified into different types based on their data type and usage.

1. Integer Constants

Integer constants are whole numbers (without decimal points). They can be:

2. Floating-Point (Real) Constants

Floating-point constants represent decimal numbers or numbers in exponential form.

3. Character Constants

A single character enclosed in single quotes (‘ ‘).

4. String Constants

A sequence of characters enclosed in double quotes (” “).

5. Symbolic Constants

Defined using the #define preprocessor directive.

6. Enumeration Constants

Created using enum for defining a set of named integer constants.

Would you like a detailed explanation of any specific

CHAPTER -4 CONSTANTS ,VARIABLES AND DATA TYPES

Type of C Contants- part 6