Introductory C : Pointers, Functions and Files
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 this text emphasizes how each new programming feature relates to the use of pointers to provide a thorough understanding of the applications throughout C. This edition offers an explanation of Arrays in C over several chapters, describing strings, arrays of structures, multidimensional arrays and arrays of pointers. The underlying implementation of arrays using pointers is 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. The book includes a floppy disk with source code from examples in the text.
- Mixed media product | 700 pages
- 190.5 x 226.06 x 40.64mm | 839.14g
- 08 Nov 1996
- Elsevier Science Publishing Co Inc
- Academic Press Inc
- San Diego, United States
- 2nd Revised edition
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 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.
About Richard Petersen
By Richard L. Petersen