Fundamental Programming Variables & Scope Beginner
Q What happens if a const int variable is declared in C++ without an initializer (const int k;)?
  • A A runtime error occurs
  • B Compilation error
  • C k holds garbage but cannot be changed
  • D k is set to 0
Leave a Comment