0 votes
by
What is the use of static variables in C?

1 Answer

0 votes
by
Static variables in the C programming language are used to preserve the data values between function calls even after they are out of their scope. Static variables preserve their values in their scope and they can be used again in the program without initializing again. Static variables have an initial value assigned to 0 without initialization.

Related questions

0 votes
asked Jan 4 in C Plus Plus by GeorgeBell
0 votes
asked Jan 11 in C Plus Plus by GeorgeBell
...