Monday, December 15, 2008

Rules for constructing Character Constants

The rules for constructing a character constant are a follows:
1. A character constant is nothing but simply an alphabet, or a single digit or a single special symbol enclosed with in single inverted commas.
2. The maximum length of a character constant is one character.

Ex:
‘A’
‘k’
‘4’
‘+’

No comments:

Post a Comment

Please give your valuable comments or queries if you fell its helpful or if you like the contents of the site. Thanks...