Guide To C Programming

Join Now
Category:
Technology
Words | Pages:
12792 | 52
Views:
368
Bookmark and Share

Guide To C Programming

Beej's Guide to C Programming
Brian “Beej” Hall beej@beej.us
Revision alpha-25 May 17, 2007
Copyright © 2007 Brian “Beej” Hall

Contents
1. Foreward......................................................................................................................................... 1 1.1. Audience 1 1.2. Platform and Compiler 1 1.3. Building under Unix 2 1.4. Official Homepage 2 1.5. Email Policy 2 1.6. Mirroring 2 1.7. Note for Translators 3 1.8. Copyright and Distribution 3 2. Programming Building Blocks..................................................................................................... 4 2.1. The Specification 4 2.2. The Implementation 5 2.3. So Much To Do, So Little Time 6 2.4. Hello, World! 7 3. Variables, Expressions, and Statements (Oh My).................................................................... 10 3.1. Variables 10 3.2. Operators 11 3.3. Expressions 12 3.4. Statements 12 4. Building Blocks Revisited............................................................................................................17 5. Functions....................................................................................................................................... 18 5.1. Passing by Value 20 5.2. Function Prototypes 20 6. Variables, The Sequel..................................................................................................................22 6.1. “Up Scope” 22 6.2. Storage Classes 24 7. Pointers--Cower In Fear!............................................................................................................ 26 7.1. Memory and Variables 26 7.2. Pointer Types 27 7.3. Dereferencing 28 7.4. Passing Pointers as Parameters 28 8. Structures......................................................................................................................................30 8.1. Pointers to structs 31 8.2. Passing struct pointers to functions 32 9....

Join Now