Computer Science - Object Oriented Programming Using C++ - Discussion

Discussion Forum : Object Oriented Programming Using C++ - Section 1 (Q.No. 8)
8.
Which of the following are valid characters for a numeric literal constant?
a comma
a dollar sign ($)
a percent sign (%)
a space
None of the above
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
15 comments Page 1 of 2.

Pooja said:   7 years ago
Null is the numeric constant.
(1)

Sultan said:   6 years ago
I think we have to use "macro " here. Am I right?
(1)

Rex said:   4 years ago
What is the numeric literal? Please explain.
(1)

Smita said:   1 decade ago
What are a valid characters for a numeric literal constants?

Priti said:   1 decade ago
Let me know the valid characters for a numeric literal constant.

Manojit said:   1 decade ago
Literal constants are invariants whose values are implied by their representations.

Priya said:   1 decade ago
We have to declare the numeric as a constant unsing the keyword "const" in the header file.

Eg: const 7

Pravin chaudhari.. said:   1 decade ago
No need to declare in header and all you can use const while declaring variable with const keyword.

Anup Kumar said:   1 decade ago
We have to declare the numeric constant using the Keword "const" . That means you can't change that value in that program.

Anju said:   1 decade ago
So just like keywords comma, %, space etc cannot be used for literal constants. Right?


Post your comments here:

Your comments will be displayed after verification.