Advertisements
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++?
What are keywords?
The following constant is of which type?
032
Write the following real constant into the exponent form:
0.319
Assume n = 10; what will be result of n++ and --n;?
Match the following.
| A | B |
| (a) Modulus | (1) Tokens |
| (b) Separators | (2) Remainder of a division |
| (c) Stream extraction | (3) Punctuators |
| (d) Lexical Units | (4) get from |
Write about Binary operators used in C++.
Consider the following C++ statement. Are they equivalent?
char ch = 67;
char ch = ‘C’;
What is the difference between 56L and 56?
What are arithmetic operators in C++? Differentiate unary and binary arithmetic operators. Give example for each of them.
