Advertisements
Advertisements
Question
Determine which of the following are valid constant? And specify their type.
27,822
One Line Answer
Advertisements
Solution
27,822 – Invalid constant. The comma is not allowed.
shaalaa.com
Lexical Units (Tokens)
Is there an error in this question or solution?
Chapter 9: Introduction to C++ - Data Types, Variables and Expressions - Evaluation - Section - B [Page 151]
APPEARS IN
RELATED QUESTIONS
Which of the following operator is an extraction operator in C++?
The following constant is of which type?
04.14
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 |
Differentiate “=” and “==”.
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’;
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.
How relational operators and logical operators are related to one another?
