← BYTES
C·Starter·Ref: 7.1.14
What is the scope of an ordinary (non-static) local variable declared inside a function?
Have a question about this video? Mention reference 7.1.14 when you contact us.
a.It is visible to the entire program
b.It is visible to every other function in the same file
c.It exists only within that function (block), and a new instance is created each time the function is called
d.It persists after the function returns
A plain local variable has automatic storage duration and block scope -- it comes into existence when its declaration is reached and is destroyed when the enclosing block exits, with a fresh instance on every call.
Find this on YouTube & Instagram
Every BYTES video is tagged with its reference number and topic — search any of these on YouTube or Instagram to find this one:
#BYTES#BYTES7114#C