Scope and Lifetime of a variable

You will learn about scope and lifetime of local and global variables in this tutorial. Also, you will learn about static and register variables.
Scope and Lifetime of a variable