Samsung Electronics Interview Question: what is static in C... | Glassdoor

Interview Question

Senior Software Engineer Interview Bengaluru (India)

what is static in C


Interview Answer

1 Answer


If variable variable is declared as Static then its Life-Time-Validity as long as the program itself. It gets a memory location that is available all the time and value retains even if function is called again.

Pervez Alam on Aug 2, 2011

Add Answers or Comments

To comment on this, Sign In or Sign Up.