Advertisements
Advertisements
Question
Determine which of the following are valid constant? And specify their type.
0.5
Advertisements
Solution
0.5 – is a valid constant. It is a decimal.
APPEARS IN
RELATED QUESTIONS
Which of the following is a valid string literal?
Which of the following is called compile-time operators?
The following constant is of which type?
0XCAFE
The following constant is of which type?
04.14
Write the following real constant into the exponent form:
7.214
Write the following real constant into the exponent form:
0.00005
Assume n = 10; what will be result of n++ and --n;?
Is C++ case sensitive? What is meant by the term “case sensitive”?
Determine which of the following are valid constant? And specify their type.
‘\t’
What are arithmetic operators in C++? Differentiate unary and binary arithmetic operators. Give example for each of them.
