Advertisements
Advertisements
Question
Can keywords be used as identifiers?
One Line Answer
Advertisements
Solution
Most of the keywords are common to C, C++, and Java. Keywords are reserved and cannot be used as 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?
The following constant is of which type?
39
The following constant is of which type?
032
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 |
Describe the differences between keywords and identifiers?
Is C++ case sensitive? What is meant by the term “case sensitive”?
Write a short note on the const keyword with an example.
Consider the following C++ statement. Are they equivalent?
char ch = 67;
char ch = ‘C’;
