C++ Programming Question and Answers

71. What are variables?
 
  • Variables are user defined named entities of memory locations that can store data.
 
Your Name Your Email-ID
Your Answer
72. What are constants?
 
  • Constants are data items whose values cannot be changed.
  • A constant is of numeric or non-numeric type.
  • Numeric constants consist of only numbers, either whole numbers or decimal numbers.
  • Integer, floating point are numeric constants.
 
Your Name Your Email-ID
Your Answer
73. What are numeric constants?
  Numeric constant consists of only numbers whole numbers or decimal numbers. Integer, floating- point are numeric constants.
 
Your Name Your Email-ID
Your Answer
74. What is Integer constant?
 
  • Integer Constant must have atleast one digit and must not contain any fractional part.
  • May be prefixed with a + or – sign.
 
Your Name Your Email-ID
Your Answer
75. What is character constant?
 
  • Character constant is a constant that contains a single character enclosed within single quotes.
  • It can be any character alphabet, numeral, mathematical, relational or any other special character as part of the ASCII set.
 
Your Name Your Email-ID
Your Answer
123456789101112


131415 Page 15 of 15