Advertisements
Advertisements
Question
Determine which of the following are valid constant? And specify their type.
‘Name’
One Line Answer
Advertisements
Solution
‘Name’ – Invalid constant as the single quote 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 statements is not true?
The following constant is of which type?
0XCAFE
Write the following real constant into the exponent form:
23.197
Write the following real constant into the exponent form:
0.00005
Write the following real constant into the exponent form:
0.319
Is C++ case sensitive? What is meant by the term “case sensitive”?
Differentiate “=” and “==”.
Consider the following C++ statement. Are they equivalent?
char ch = 67;
char ch = ‘C’;
What is the difference between 56L and 56?
Determine which of the following are valid constant? And specify their type.
27,822
