Examveda
Examveda

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: Option D


Join The Discussion

Related Questions on Object Oriented Programming Using C Plus Plus

A default catch block catches

A. all thrown objects

B. no thrown objects

C. any thrown object that has not been caught by an earlier catch block

D. all thrown objects that have been caught by an earlier catch block