C by Dissection: The Essentials of C ProgrammingC by Dissection presents a thorough introduction to the programming process by carefully developing working programs to illuminate key features of the C programming language. This book presents the concepts of the programming process using the "dissection" method. Dissection is a unique tool first developed by the authors to point out key features of program code. It is similar to a structured walk-through of the code, with the intention of explaining newly encountered programming elements and idioms as found in working code. Each chapter presents a number of carefully explained programs, which lead the reader in a holistic manner to ever-improving programming skills. Right from the start, the reader is introduced to complete programs, and at an early point in the book is introduced to writing functions as a major feature of structured programming. This edition features expanded treatment of pointers, memory management, and recursion. It also takes into account the fact that many people are learning Java as a first language and then going to C, or vice-versa, and calls out those topics that present a challenge when making such transitions (e.g. i/o, data types). This book assumes no programming background and can be used by first-time computer users or by experienced programmers who are transitioning to C. |
Other editions - View all
Common terms and phrases
allocated ANSI argument array base address binary bits bitwise bytes calling environment calloc causes Chapter COMMON PROGRAMMING ERRORS compiler computes const char control string control-z conversion character conversion specification ctype.h declaration define digits elements end-of-file enum equivalent example executed exercise expr expr2 expression exprl float following code format fseek function call function definition function prototype getchar give the command header file identifier include stdio.h initialized input stream int value integer invoked keyword letter loop machine memory MS-DOS null character occur operand operating system option output parameter pointer preprocessing directives preprocessor printed printf printf("Input programming style putchar qsort rand random number recursive returned scanf screen size_t specified standard library statement stdlib.h storage class stored struct structure symbolic constant SYSTEM CONSIDERATIONS system-dependent type int typedef unary unary operators UNIX unsigned void white space Write a function Write a program zero