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 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
What people are saying - Write a review
We haven't found any reviews in the usual places.
Variables Pointers and Functions 1 Introduction
35 other sections not shown
a.out address operation arguments arithmetic array name array of pointers array subscripts assignment expression assignment operation b-tree binary bookrecs buffer bytes calc call-by-reference char comma operator compiler conversion specifier data type decimal define dependency line derived class element emprecs emptr example executed fgets floating-point floating-point value format string fseek function call function declaration header file hexadecimal include stdio.h indirection operation input int main(void integer value io.c keyword loop main.c makefile member functions member operation mycalc mynums newline null character NUMOBJ numptr object code object code files octal operand parameter parentheses placed pointer offset pointer operations pointer variable printf printf("\nPlease enter program in Listing recno recursive reference referenced result return type return value scanf source code file strcmp string constant structure type declaration structure variable suffix rule symbolic constants test expression tfdefine tion Unix unsigned variable declaration void