189k views
4 votes
Which statement is false? Select one:

A. Arrays that are defined static are automatically initialized once at compile time.
B. A static local variable exists for the duration of the program.
C. A static local variable is visible to other functions.
D. A static local array is not created and destroyed each time the function is entered and exited.

User Jaspreet
by
6.0k points

1 Answer

6 votes

Answer:

C. A static local variable is visible to other functions

Step-by-step explanation:

C. A static local variable is visible to other functions.

this statement among the given four statement is False while the others are true because Static variables are defined as the variables whose value remains constant through out the program once initialized. And local static variables are variables whose scope finishes after its block , so they are not visible to other function.

User Tycho Pandelaar
by
5.9k points