0

What does the "static" in C programming means ?

8th Apr 2020, 10:59 AM
Janvi
Janvi - avatar
4 Respostas
+ 2
static variable means It is initialized only once at start of program and retains its value through out different function calls with recent value.. You can assign different values but not initialized again... Edit: Janvi Waware Small edit read again.. If you have doubt regarding this, leave a comment.. (it's not global type variable)
8th Apr 2020, 11:05 AM
Jayakrishna 🇮🇳
+ 1
static variables can persist value and there scope can be limited to a .c file or a function in which they are declared. I think static variables very useful.
8th Apr 2020, 12:38 PM
Ankur
Ankur - avatar
0
Gotcha ! Thanks for the help 😊Jayakrishna🇮🇳
8th Apr 2020, 11:13 AM
Janvi
Janvi - avatar
0
Janvi Waware you're welcome..
8th Apr 2020, 11:15 AM
Jayakrishna 🇮🇳