Rules for Constructing Character Constants
Rules for Constructing Character Constants A character constant is a single alphabet. A single digit or a single special symbol enclosed within single inverted commas . Both the inverted commas should point to the left. For example: ’A’ is a valid character constant whereas ‘A’ is not. The maximum length of a character constant can be 1 character. Ex.: 'A' 'I' '5' '='