Shouldn't storage classes be taught early in a C class or book?
- by Adam Mendoza
Shouldn't storage classes be taught early in a C class or book?
I notice that a lot of books, even some of the better ones, covert it toward and end of the book and some books just add it as an appendix. I would teach it together with variables. This is so foundational and I think unfortunately many do not make it that far in a book. Now that auto has a different meaning (vs being optional) it may confuse people that didn't realize it has always been there.
for example:
C Programming: A Modern Approach
18.2 Storage Classes 401
Properties of Variables 401
The auto Storage Class 402
The static Storage Class 403
The extern Storage Class 404
The register Storage Class 405
The Storage Class of a Function 406
Summary 407