Teaching Rajasthan Basic Computer Instructor 2021 Mock Test Programming and Data Structure Programming in C Storage Class
The lifetime (longevity) of the static variables in a 'C' program is:
1
till the end of the first function
2
till the end of the main program
3
till the time first ten statements get executed
4
within the function in which they are defined