Skip to main content

Static storage class

Static storage class 

static variables in c
static variables in c

static variable have lifetime over entire program run.
scope of this variable is limited based on the place of declaration.
if static variable is defined in a file and not inside any function, then scope of the variable is limited within that file.
if static variable is defined inside a function, then the scope of the variable is limited within that function.
we can use this variable any file and any function indirectly by accessing through pointer.

Comments

Popular posts from this blog

CAN INTERVIEW QUESTIONS

Qualifiers and Modifier in C

RTOS Real time operating system interview questions

CAN INTERVIEW QUESTIONS 2

What is UDS protocol

Memory mapping in c

TOP IOT PLATFORMS