C
Programming and Technical
Programming
Puzzles
static variable will be visible in
a) fn.in which they are defined
b)module they are defined
c) all the program
d) none
Read Solution (Total 8)
-
- module which they are defined
- 7 years agoHelpfull: Yes(5) No(0)
- fn.in which they are defined
- 7 years agoHelpfull: Yes(0) No(1)
- all the program
because we initialize static variable only once in the program - 7 years agoHelpfull: Yes(0) No(0)
- all the program
- 7 years agoHelpfull: Yes(0) No(2)
- A.
Reason: the scope of the static variable is local to the block in which the variable is defined and life of the variable persists between different function calls. - 7 years agoHelpfull: Yes(0) No(0)
- Fun in which they are defined
- 7 years agoHelpfull: Yes(0) No(0)
- Answer is a
- 6 years agoHelpfull: Yes(0) No(0)
- option a) is right
- 5 years agoHelpfull: Yes(0) No(0)
C Other Question