C for Yourself

C for Yourself : Learning C Using Experiments

3.5 (2 ratings by Goodreads)
By (author) 

Free delivery worldwide

Available. Dispatched from the UK in 3 business days
When will my order arrive?

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.show more

Product details

  • Paperback | 240 pages
  • 189 x 231.9 x 11.7mm | 442.91g
  • Oxford University Press Inc
  • New York, United States
  • English
  • line figures
  • 0195108418
  • 9780195108415

Review quote

'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 Mathematikshow more

Table of contents

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 Codeshow more

Rating details

2 ratings
3.5 out of 5 stars
5 0% (0)
4 50% (1)
3 50% (1)
2 0% (0)
1 0% (0)
Book ratings by Goodreads
Goodreads is the world's largest site for readers with over 50 million reviews. We're featuring millions of their reader ratings on our book pages to help you find your new favourite book. Close X