C for Yourself: Learning C Using Experiments - Brossura

Halpern, Richard P.

 
9780195108415: C for Yourself: Learning C Using Experiments

Sinossi

This innovative text provides beginning programmers with a concise, accessible introduction to the world of C. Assuming no prior programming experience, the author presents a carefully chosen subset of C powerful enough for solving non-trivial programming problems, yet simple enough so that a novice can steer clear of the pitfalls. Unsurpassed in motivating students' critical thinking and active learning, C For Yourself features computer experiments which serve to clarify presented concepts and to guide readers into making discoveries on their own. Readers are directed in learning many of the subtleties and intricacies of C through hands-on examples. Each section contains interesting pencil and paper exercises to reinforce new knowledge, and programming problems further enlighten students. Chapters cover all the basics of this increasingly important subject, from pointers and arrays to structures, files, and recursion. The author's clear and highly accessible writing style make this text ideal for beginning students and novice programming enthusiasts. A comprehensive instructor's manual including problem solutions and transparency masters also accompanies the text.

Le informazioni nella sezione "Riassunto" possono far riferimento a edizioni diverse di questo titolo.

Recensione

'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 Mathematik

Contenuti

  • 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

Le informazioni nella sezione "Su questo libro" possono far riferimento a edizioni diverse di questo titolo.