C++ MQCs with Explanation (CHAPTER 3: TOKENS, EXPRESSIONS AND CONTRAL STRUCTURES)

Which of the following statements is FALSE?

  1. All variables must be declared before they are used
  2. A variable can be declared anywhere in the scope
  3. A variable must be initialized at the time of its declaration
  4. All variables must be given a type when they are declared



Answer: 
Option c: A variable must be initialized at the time of its declaration

Explanation Here

Post a Comment

0 Comments