Shouldn't storage classes be taught early in a C class or book?
Posted
by
Adam Mendoza
on Programmers
See other posts from Programmers
or by Adam Mendoza
Published on 2012-07-08T12:57:04Z
Indexed on
2012/07/08
15:22 UTC
Read the original article
Hit count: 294
c
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
© Programmers or respective owner