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 statements is not true?
Which of the following is a valid string literal?
The following constant is of which type?
0XCAFE
Write the following real constant into the exponent form:
7.214
Differentiate “=” and “==”.
What is the difference between 56L and 56?
Determine which of the following are valid constant? And specify their type.
‘Name’
Determine which of the following are valid constant? And specify their type.
27,822
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?
