Hello, IGNOU BCA Reader
In this post We are going to know that topic, C++ character set and identifiers. Set of character (Letters+Digits+Punctuation) we will use to write the C++ program. Identifiers are for the naming purpose. Identifiers are used to name the Variables, Constant, Function, Classes and its member.
C++ Character Set
It is set of Character that valid character that a language can recognize.
These listed characters are set of C++ Character set.
Letters (Alphabets) | A to Z, a to z |
Digits | 0 to 9 |
Special Characters | +,-,*,/,^,\,(),[],{},=,!,<>,.,',",$,;,:,%,&,?,_,#,<=,>=,@ |
Summary:
There are 62 letters and digits character set in C++ ( 26 Capital Letters + 26 Small Letters + 10 Digits).
C++ is a case sensitive language, that means letter A and a, are distinct in C++ programming language.
There are 29 punctuation and special character set in C++ and is used for various purposes during programming.
White Space Characters:
White space character is used to produced blank space. These are space, tabs, newlines, and comments.
Token
A token is group of character that having some meaning.
C++ uses the following types of tokens.
- Keywords
- Identifiers
- Literals
- Punctuation
- Operators
Identifiers
Identifiers is name that is assign to variable and function. That can be use to called that stored value anywhere in program when needed.
To create identifiers, there is rules that should be followed to create a valid one identifiers.
- Valid identifiers are a sequence of one or more letters, digits or underscore character (_). Neither space nor punctuation marks or symbols can be part of an identifier. Only letters, digits and single underscore (_) character are valid. It must not start with a digit.
- C++ is case sensitive, that means upper and lower case characters considered different from each other. eg. total and TOTAL is different.
- it should not be a reserve word.
We will use this chapter in next tutorial of this c++ tutorial by BCAStudy will be - Variable & Literals/Constants
Next >>
✍️ Only article/post centric comments are allowed.
❌**No Spam**
❌**Advertisement**
❌**No abuse**
Rules strictly applied ✅