Practical C Programming

Copertina anteriore
"O'Reilly Media, Inc.", 1997 - 428 pagine

There are lots of introductory C books, but this is the first one that has the no-nonsense, practical approach that has made Nutshell Handbooks® famous.

C programming is more than just getting the syntax right. Style and debugging also play a tremendous part in creating programs that run well and are easy to maintain. This book teaches you not only the mechanics of programming, but also describes how to create programs that are easy to read, debug, and update.

Practical rules are stressed. For example, there are fifteen precedence rules in C (&& comes before || comes before ?:). The practical programmer reduces these to two:

  • Multiplication and division come before addition and subtraction.

Contrary to popular belief, most programmers do not spend most of their time creating code. Most of their time is spent modifying someone else's code. This books shows you how to avoid the all-too-common obfuscated uses of C (and also to recognize these uses when you encounter them in existing programs) and thereby to leave code that the programmer responsible for maintenance does not have to struggle with. Electronic Archaeology, the art of going through someone else's code, is described.

This third edition introduces popular Integrated Development Environments on Windows systems, as well as UNIX programming utilities, and features a large statistics-generating program to pull together the concepts and features in the language.

 

Cosa dicono le persone - Scrivi una recensione

Nessuna recensione trovata nei soliti posti.

Indice

I
1
What Is C?
3
Basics of Program Writing
11
Style
38
Basic Declarations and Expressions
49
Arrays Qualifiers and Reading Numbers
63
Decision and Control Statements
84
Programming Process
95
Floating Point
265
III
277
Advanced Pointers
279
Modular Programming
304
Ancient Compilers
329
Portability Problems
337
Cs Dustier Corners
344
Putting It All Together
348

II
113
More Control Statements
115
Variable Scope and Functions
127
C Preprocessor
140
Bit Operations
156
Advanced Types
173
Simple Pointers
183
File InputOutput
209
Debugging and Optimization
229
Programming Adages
382
IV
387
ASCII Table
389
Ranges and Parameter Passing Conversions
391
Operator Precedence Rules
393
A Program to Compute a Sine Using a Power Series
395
Glossary
399
Index
421
Copyright

Altre edizioni - Visualizza tutto

Parole e frasi comuni

Informazioni sull'autore (1997)

Steve Oualline lives in Southern California, where he works as a software engineer for a major phone company. In his free time he is a real engineer on the Poway Midland Railroad. Steve has written almost a dozen books on programming and Linux software. His web site is http: //www.oualline.com .

Informazioni bibliografiche