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 operator is an extraction operator in C++?
Which of the following statements is not true?
Can keywords be used as identifiers?
The following constant is of which type?
0XCAFE
Assume n = 10; what will be result of n++ and --n;?
Is C++ case sensitive? What is meant by the term “case sensitive”?
Write a short note on the const keyword with an example.
Consider the following C++ statement. Are they equivalent?
char ch = 67;
char ch = ‘C’;
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?
