Which of the following statement is correct about the global variable?

63. Which of the following statement is correct about the global variable?

  1. A variable defined inside the function or block is known as a global variable.
  2. A variable defined outside the function or block is known as a global variable.
  3. Global variables can only declare inside the “.h” file.

Answer: B) A variable defined outside the function or block is known as a global variable.

Explanation:

The 2nd statement is correct about the global variable.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.