Types of C Constants
C constants can be divided into two major categories:- Primary Constants
- Secondary Constants
These constants are further categorized as shown in Figure 1.4.
At this stage we would restrict our discussion to only Primary Constants, namely, Integer, Real and Character constants. Let us see the details of each of these constants. For constructing these different types of constants certain rules have been laid down.
These rules are as under:
Rules for Constructing Integer Constants
Rules for Constructing Real Constants
Rules for Constructing Character Constants
Conversion Conversion Emoticon Emoticon