Describe the differences between keywords and identifiers?
Advertisements
Question
Describe the differences between keywords and identifiers?
Distinguish Between
Advertisements
Solution
Keywords:
- Keywords are reserved words that convey specific meaning to the C++ compiler.
- They are essential elements to construct C++ programs.
- Most of the keywords are common to C, C++, and Java.
Identifiers:
- Identifiers are the user-defined names given to different parts of the C++ program.
- They are the fundamental building blocks of a program.
- Every language has specific rules for naming the identifiers.
shaalaa.com
Lexical Units (Tokens)
Is there an error in this question or solution?
APPEARS IN
RELATED QUESTIONS
Which of the following operator is an extraction operator in C++?
Which of the following statements is not true?
Can keywords be used as identifiers?
The following constant is of which type?
0XCAFE
Is C++ case sensitive? What is meant by the term “case sensitive”?
Write about Binary operators used in C++.
Write a short note on the const keyword with an example.
Determine which of the following are valid constant? And specify their type.
0.5
Determine which of the following are valid constant? And specify their type.
27,822
How relational operators and logical operators are related to one another?
