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.

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?

Pallavi said:   1 decade ago
What is valid character for numeric literal constant?

Manu said:   1 decade ago
Numeric literal constants are basically number that may be of float, string type others like %, # are the punctuation.

Barkha said:   9 years ago
What are valid characters for numeric literal constants?


Post your comments here:

Your comments will be displayed after verification.