C For Yourself
Learning C Using Experiments
Halpern(Author)
Oxford University Press Inc
Published on 10. April 1997
Book
Paperback/Softback
240 pages
978-0-19-510841-5 (ISBN)
Description
This elementary level text on C targets first-time programmers and implements a subset approach, acknowledging that C encompasses much material and many pitfalls. This unusual text uses "experiments" to guide students to discover things for themselves and directs students in learning many of the subleties and intricacies of C through hands-on examples. The author's inviting writing style is especially appealing to novice programmers. C for Yourself is suitable as a supplement in an elementary computer science course for computer science majors as well as a course for non-majors or a community college C course.
Reviews / Votes
'Assuming no prior programming experience, the author presents a subset of C powerful enough for solving nontrivial programming problems, yet simple enough so that a novice can steer clear of the pitfalls. Computer experiments serve to clarify presented concepts and guide readers into making discoveries on their own. Zentrallblatt fur Didaktik der MathematikMore details
Language
English
Place of publication
New York
United States
Target group
College/higher education
Illustrations
line figures
Dimensions
Height: 234 mm
Width: 190 mm
Thickness: 12 mm
Weight
430 gr
ISBN-13
978-0-19-510841-5 (9780195108415)
Copyright in bibliographic data is held by Nielsen Book Services Limited or its licensors: all rights reserved.
Schweitzer Classification
Content
1. The Basics ; 1.1 Identifiers ; 1.2 Sybolic Constants ; 1.3 Variables ; 1.4 Data Types ; 1.5 Operators ; 1.6 Expressions ; 1.7 Statements ; 1.8 Program Execution ; 2. Statements: Part I ; 2.1 Output ; 2.2 Assignment ; 2.3 Input ; 3. Statements: Part II ; 3.1 Selection ; 3.1.1 The if Statement ; 3.1.2 The if-else Statement ; 3.1.3 The switch Statement ; 4. Functions ; 4.1 Functions: The Basics ; 4.2 Functions: Input and Output ; 4.2.1 Functions with Input ; 4.2.2 Functions with Output ; 4.3 Scope ; 4.3.1 Static Variables ; 4.3.2 The Function Main ; 4.3.3 A Note on Prototypes ; 5. A Brief Introduction to Pointers ; 5.1 The Pointer Concept ; 5.2 Declaration and Assingnment of Pointers ; 5.2.1 The Deferencing Operator ; 5.3 Passing Pointers to Functions ; 6. Arrays ; 6.1 One Dimensional Arrays ; 6.2 Arrays and Pointers ; 6.2.1 Pointer Arithmetic ; 6.2.2 Passing Arrays as Parameters ; 6.2.3 Sorting: An Application Using Arrays ; 6.3 Two Dimensional Arrays ; 6.3.1 Two Dimensional Array Arithmetic ; 6.4 Strings ; 7. Structs and Linked Lists ; 7.1 Structs ; 7.1.1 Declaring the Struct Type ; 7.1.2 Struct Variables ; 7.2 Dynamic Memory Allocation ; 7.2.1 Deallocation of memory ; 7.3 Linked Lists ; 7.3.1 Accessing Individual Components ; 8. Files ; 8.1 File Buffers ; 8.2 File Commands ; 8.2.1 Detecting the End of a File ; 9. Recursion ; 10. Optimal Extras ; 10.1 Additional Data Types ; 10.2 Shorthand Operator Notation ; 10.3 Macros ; 10.4 Compilation Schemes ; 10.4.1 Conditional Compilation ; 10.4.2 Separate Compilation ; 10.5 Two Unusual Operations ; 10.6 Passing Parameters to Main ; 10.7 Variable Length Parameter Lists ; Appendix: ; A: Discussion of Experiments ; B: Notes on Some Library Functions ; C: Keywords and Symbols ; D: ASCII Code