Skip to main content

Introductory C

Pointers, Functions, and Files

  • 2nd Edition - October 24, 1996
  • Latest edition
  • Author: Richard L. Petersen
  • Language: English

C differs from most programming languages in its use of pointers, functions, and files. For those learning C, pointers are the greatest source of confusion. The primary aim of th… Read more

Purchase options

Sorry, this title is not available for purchase in your country/region.

World Book Day celebration

Where learning shapes lives

Up to 25% off trusted resources that support research, study, and discovery.

Description

C differs from most programming languages in its use of pointers, functions, and files. For those learning C, pointers are the greatest source of confusion. The primary aim of this book is to provide working models of how pointers are used in C. Pointers are used differently with every programming feature and Introductory C, Second Edition, emphasizes how each new programming feature relates to the use of pointers to provide a thorough understanding of the applications throughout C.

Introductory C, Second Edition, offers a detailed explanation of Arrays in C over several chapters, describing strings, arrays of structures, multi-dimensional arrays, and arrays of pointers. The underlying implementation of arrays using pointersis described in detail with such features as pointers to elements, pointers to arrays, and pointers to pointers. File access methods using text and binary files are also given thorough coverage: character, line, formatted text files, and record binary files are described, and the implementation of file access functions is described in detail. This book will be of great use to programmers at all levels.

Key features

  • Includes three new chapters introducing C++, including coverage of classes, objects, constructors, overloading, inheritance, and derivation
  • Contains a floppy disk with source code from examples in the book

Readership

From amateurs to professional computer programmers interested in C and C++

Table of contents

Section I: Variables, Pointers, and Functions: Introduction. Data Types. Expressions. Statements. Pointers. Functions. Structures. Storage Classes and Scope Rules. Program Organization. Section II: Arrays and Pointers: Arrays and Pointers. Arrays of Characters: Strings. Arrays of Structures. Arrays of Arrays. Arrays of Pointers. Section III: Data Structures and file Management: Data Structures and Recursion. Text Files. Record Files. System Calls and Stream I/O. Section IV: An Introduction to C++: Classes and Objects. Classes and Pointers. Inheritance, Derivation, and Overloading. Section V: C Topics: The Preprocessor. Bitwise Operations. Make. Formatted I/O Conversions. Section VI: Appendixes: ASCII Code. The Standard Library. Answers to Exercises. Subject Index.

Product details

  • Edition: 2
  • Latest edition
  • Published: June 21, 2012
  • Language: English

About the author

RP

Richard L. Petersen

Richard Petersen teaches C Programming and UNIX courses at the University of California, Berkeley. His doctoral work was in artificial intelligence applications to information retrieval. He has pursued studies in cognitive science, philosophy, and aesthetics with particular emphasis on skill acquisition.
Affiliations and expertise
University of California, Berkeley, U.S.A.