Drop Down MenusCSS Drop Down MenuPure CSS Dropdown Menu

Tuesday, March 10, 2015

What is character constant ?

Character constant is divided into two categories, first is single character constants and another string constants.
Single Character constants contain only 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.
Ex.: 'a'
'A'
'9'
'='

String constant is a sequence of character i.e. it is collection of characters enclosed in double quotes.
Ex:       “ABC”
“123”
“12+45”


No comments:

Post a Comment