Lesson 19
Unlock this lesson
Create a free account, then buy the course to open every lesson.
What you will learn in this lesson
- Where a variable can be used: inside a function, inside a block, or everywhere.
- Why two functions can both have a variable named count.
- How long a variable lives, and how static makes it remember.
- The four storage classes: auto, register, static and extern.
- Share one variable between two .c files.
Everything in C Programming: BCA, MCA, BTech & O Level
- 37 step-by-step lessons
- 10 mini projects with solutions
- A final project for your portfolio
- Real commands and real output in every lesson
- Practice task with a solution in each lesson
- Progress saved to your account