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?
Discussion:
15 comments Page 1 of 2.
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.
Manu said:
1 decade ago
Numeric literal constants are basically number that may be of float, string type others like %, # are the punctuation.
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
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.
Anju said:
1 decade ago
So just like keywords comma, %, space etc cannot be used for literal constants. Right?
Manojit said:
1 decade ago
Literal constants are invariants whose values are implied by their representations.
Ajay said:
6 years ago
'x' or 'X' is the character literal which can be used with literal constants.
Priti said:
1 decade ago
Let me know the valid characters for a numeric literal constant.
Smita said:
1 decade ago
What are a valid characters for a numeric literal constants?
Barkha said:
9 years ago
What are valid characters for numeric literal constants?
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers