C++ Programming Question and Answers

41. What are non graphic character constants?
 
  • Certain special characters like tab, backspace, line feed, null, backslash are called as non-graphic character constants.
 
Your Name Your Email-ID
Your Answer
42. What do you mean by the term token in C++?
 
  • The basic types are collectively called as tokens.
  • The token is the smallest individual unit in a program.
 
Your Name Your Email-ID
Your Answer
43. What is a pointer and an address?
 
  • A pointer is a variable that holds a memory address.
  • Pointers provide the means through which memory locations of a variable can be directly accessed.
  • Every byte in the computer's memory has an address.
 
Your Name Your Email-ID
Your Answer
44. Explain storage qualifiers in C++?
 
  • Const: This variable means that if the memory is initialized once, it should not be altered by a program.
  • Volatile: This variable means that the value in the memory location can be altered even though nothing in the program code modifies the contents.
  • Mutable: This variable means that a particular member of a structure or class can be altered even if a particular structure variable, class, or class member function is constant.
 
Your Name Your Email-ID
Your Answer
45. What are the divisions in floating type?
 
  • Floating type is divided into float and double.
  • Floating type can store values with fractional part.
 
Your Name Your Email-ID
Your Answer
123456789101112


131415 Page 9 of 15