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

Identify the error, if any, in the statement:long sum = m1 + m2;

  1. Initialization at the time of declaration is not valid
  2. Declaration cannot contain any expression
  3. Type specification is incomplete
  4. No error



Answer: 
Option a: Initialization at the time of declaration is not valid

Explanation Here

Post a Comment

0 Comments