Advertisements
Advertisements
Question
Determine which of the following are valid constant? And specify their type.
0.5
Solution
0.5 – is a valid constant. It is a decimal.
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
Write the following real constant into the exponent form:
0.319
Assume n = 10; what will be result of n++ and --n;?
Describe the differences between keywords and identifiers?
Differentiate “=” and “==”.
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.
‘Name’
What are arithmetic operators in C++? Differentiate unary and binary arithmetic operators. Give example for each of them.