answersLogoWhite

0

Static variable in c

User Avatar

Anonymous

15y ago
Updated: 8/16/2019

A static variable in C is one in which the memory is preallocated before the execution unit begins and lasts for the entire program unit.

A non-static variable in C will be allocated in the block in which it is contained, and destroyed outside that block.

User Avatar

Wiki User

15y ago

Still curious? Ask our experts.

Chat with our AI personalities

LaoLao
The path is yours to walk; I am only here to hold up a mirror.
Chat with Lao
FranFran
I've made my fair share of mistakes, and if I can help you avoid a few, I'd sure like to try.
Chat with Fran
EzraEzra
Faith is not about having all the answers, but learning to ask the right questions.
Chat with Ezra

Add your answer:

Earn +20 pts
Q: Static variable in c
Write your answer...
Submit
Still have questions?
magnify glass
imp