O'Reilly logo

C Primer Plus, Fourth Edition by Stephen Prata

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 13

1: Which storage classes create variables local to the function containing them?
A1: The automatic, register and the static, no linkage storage classes.
2: Which storage classes create variables that persist for the duration of the containing program?
A2: The static, no linkage storage class, the static, internal linkage storage class, and the static, external linkage storage class.
3: Which storage class creates variables that can be used across several files? Restricted to just one file?
A3: The static, external linkage storage class and the static, internal linkage storage class.
4: What kind of linkage do block scope variables have?
A4: No linkage.
5: What is the extern keyword use for?
A5: The keyword extern is used in declarations to ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required