Friday, September 4, 2020

Character Constants

 Character constant:

 

• Character constant is a single alphabet,a single digit or a single special symbol.

• Rules for constructing character constant are as follows:

1] A character constant is a single alphabet, a single digit or a single special symbole, enclosed within a single inverted comma.

2] Both inverted commas should point to the left.

3] The maximum length for character constant can be 1 character.


3 comments:

Object Paradigm Oriented Programming in C++ / object oriented programming / History of C++/ paradiagram in c++/C devolop, Operating System, Unix operating system, Assembly language, popular in world, Programming language.

  Object Paradigm Oriented Programming  Two programmers, Brian Kernighan and Dennis Ritchie developed a new language called C, in 1972.  C l...