Constants
The constants are the values which never changes. The C uses following types of constants. Integer constants : Integer constants represent the whole numbers. They uses digits 0 to 9 and optional sign + or - before the number. The following are examples of valid integer constants. 123 -23 65535 0 +85 The space, comma and other special symbols are not allowed. The following are examples of invalid integer constants. 10,000 $500 15 780 Real Constant : Real Constants represent the numbers with fractional parts i.e digits after decimal point. They are used to represent contiguous quantities like temperature of day. The following are examples of valid real constants. 0.0005...
Comments
Post a Comment