Tokens and White Spaces in CPP

A token is a language element that is used to form a statement. Cpp statement may consist of different tokens...

Token and White Spaces in cpp

Token in cpp


A token is a language element that is used to form a statement. Cpp statement may consist of different tokens. Different types of token are as follows:
Keyword
Keyword is a word in C language that has predefined meaning and purpose. The meaning and purpose of keyword is defined by the developer of the language.
Example: For , Double, if ,while, do, else.
Identifiers
Identifiers is the name of a variable of function etc. it is also called user defined function.
Example: rbatec, item, counter.
Constant
Constant is a quantity that cannot be changed during execution of a program.
Example: 44 55 333 2
String Literals
 A collection of charecters written in double quotation is called string or string literal.
Example: “My name is bilal” “rbatec” .
Operators
Operation is a samble that performs some operation. It acts on different operands
Example: + - / %
Punctuation
Punctuation is symbols that is separate two tokens.
Example: [] () , ; : .

White Spaces

White spaces are used in program to increase readability. Different types of white spae include space ,tab and carriage return etc.C++ compiler ignores the white spaces. All statement of a program can be written on one line but it will be difficult to read. The white spaces makes source program more readable. A single statement can be written on two or more lines or order to increase readability but it will remain same for the compiler.





COMMENTS

Name

andriod.computer trix,1,Blogging,1,CppTutorial,8,create viruse,1,cyber security,1,fb trix,1,gmailtrix,1,laptop screen shot,1,Mobilink,1,notepad tricks,1,notepad viruse,1,PCSREEN SHOT,1,Search engine optimization (SEO),1,seo,1,software,1,Technology,4,tips,1,visitor.seo traffic,1,
ltr
item
Computer Tech Articles: Tokens and White Spaces in CPP
Tokens and White Spaces in CPP
A token is a language element that is used to form a statement. Cpp statement may consist of different tokens...
https://2.bp.blogspot.com/-XPveGaMRvbs/WJK1i3qLBYI/AAAAAAAAA4s/HlYVPjbKPn0EIEmlk-86-5j1Q_6qF9dYwCLcB/s320/cpp.PNG
https://2.bp.blogspot.com/-XPveGaMRvbs/WJK1i3qLBYI/AAAAAAAAA4s/HlYVPjbKPn0EIEmlk-86-5j1Q_6qF9dYwCLcB/s72-c/cpp.PNG
Computer Tech Articles
https://rbatec.blogspot.com/2017/02/Cpp-Tokens.html
https://rbatec.blogspot.com/
https://rbatec.blogspot.com/
https://rbatec.blogspot.com/2017/02/Cpp-Tokens.html
true
8514118360251607171
UTF-8
Loaded All Posts Not found any posts VIEW ALL Readmore Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS CONTENT IS PREMIUM Please share to unlock Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy