Important MCQ

An uninitialized local variable contains

Q.An uninitialized local variable contains

A) a garbage value
B) always -1
C) always 0
D) always 1
Correct Answer:
Option A
Detailed Explanation:
A) a garbage value is correct. A variable is a named memory location. Declare it with a data type before use; names cannot start with a digit or be keywords, and = assigns a value.