Use app×
QUIZARD
QUIZARD
JEE MAIN 2026 Crash Course
NEET 2026 Crash Course
CLASS 12 FOUNDATION COURSE
CLASS 10 FOUNDATION COURSE
CLASS 9 FOUNDATION COURSE
CLASS 8 FOUNDATION COURSE
0 votes
197 views
in Introduction to C++ Programming by (29.7k points)
closed by

You are about to study the fundamentals of C++ programming Language. Do a comparative study of the basics of the new language with that of a formal language like English or Malayalam to familiarize C++? Provide sufficient explanations for the compared items in C++ Language.

1 Answer

+1 vote
by (29.8k points)
selected by
 
Best answer

1. Character set: 

To study a language first we have to familiarize the character set. For example, to study English language first we have to study the alphabets. Similarly here the character set includes letters(A to Z & a to z), digits(0 to 9), special characters(+, -, ?, *, /, …..) white spaces(non printable), etc.

2. Token: It is the smallest individual units similar to a word in English or Malayalam language. C++ has 5 tokens 

  • Keywords: These are reserved words for the compiler. We can’t use for any other purposes. 

Eg: float is used to declare variable to store numbers with decimal point. We can’t use this for any other purpose

  • Identifier: These are user defined words. 

Eg: variable name, function name, class name, object name, etc… 

  • Literals (Constants): Its value does not change during execution 

eg: In maths % = 3.14157 and boiling point of water is 100. 

  • Punctuators: In English or Malayalam language punctuation mark are used to increase the readability but here it is used to separate the tokens. 

eg:{,}, (,), …….. 

  • Operators: These are symbols used to perform an operation(Arithmetic, relational, logical, etc…).

Welcome to Sarthaks eConnect: A unique platform where students can interact with teachers/experts/students to get solutions to their queries. Students (upto class 10+2) preparing for All Government Exams, CBSE Board Exam, ICSE Board Exam, State Board Exam, JEE (Mains+Advance) and NEET can ask questions from any subject and get quick answers by subject teachers/ experts/mentors/students.

...