Advertisements
Advertisements
Question
Determine which of the following are valid constant? And specify their type.
27,822
Advertisements
Solution
27,822 – Invalid constant. The comma is not allowed.
APPEARS IN
RELATED QUESTIONS
Which of the following operator is an extraction operator in C++?
Can keywords be used as identifiers?
The following constant is of which type?
39
The following constant is of which type?
04.14
Write the following real constant into the exponent form:
0.00005
Assume n = 10; what will be result of n++ and --n;?
Consider the following C++ statement. Are they equivalent?
char ch = 67;
char ch = ‘C’;
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.
‘Name’
What are arithmetic operators in C++? Differentiate unary and binary arithmetic operators. Give example for each of them.
