CBSE Class 12 Computer Science Question 38 of 103

Working with Functions — Question 14

Back to all questions
14
Question

Question 14

What is a variable defined inside a function referred to as

  1. A static variable
  2. A global variable
  3. A local variable
  4. An automatic variable
Answer

A local variable

Reason — A local variable is a variable declared in a function-body and it can be used only within this function and the other blocks contained under it.