Introduction To C Programming
Introduction To C Programming
Programming
Getting Started with C
The C Character Set
Rules for Constructing Integer Constants
• (a) An integer constant must have at least one digit.
• (b) It must not have a decimal point.
• (c) It can be either positive or negative.
• (d) If no sign precedes an integer constant, it is assumed to be positive.
• (e) No commas or blanks are allowed within an integer constant.
• (f) The allowable range for integer constants is -2147483648 to +2147483647.
• Ex.: 426 ,+782 ,-8000, -760
Rules for Constructing Real Constants
• (a) A real constant must have at least one digit.
• (b) It must have a decimal point.
• (c) It could be either positive or negative.
• (d) Default sign is positive.
• (e) No commas or blanks are allowed within a real constant.
• Ex.: +325.34 ,426.0, -32.76, -48.5792
Rules for Constructing Character Constants
int 2 or 4 bytes