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.:

‘K’
‘E’
‘6’
‘=’

Tagged . Bookmark the permalink.

Leave a Reply