Vidyalelo
Computer Science · Q320

Object Oriented Programming Using C++

Engineering and GATE · Computer Science · question 320

Q320

An advantage of using local variables is that _____

A.
they are known to all functions in the file
B.
names used in one function do not affect data stored in variables with the same names in other functions
C.
values given to local variables are retained when those parameters go out of scope
D.
the program does not become "crowded" with too many variable names
Answer

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board