ENGLISH

Practical C Programming

Book information

Publisher
Inc, O'Reilly Media
Year
2011
ISBN
9781449313043, 1449313043, 9781449313630, 1449313639, 9781565923065, 2147483648, 0123456789
Language
english
Format
EPUB
Filesize
4 MB (4062047 bytes)
Edition
3rd ed
Pages
456\0
Time added
2019-09-25 00:09:40

Description

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.  Read more... Abstract: 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 Content: Table of Contents Preface How This Book is Organized Chapter by Chapter Notes on the Third Edition Font Conventions Obtaining Source Code FTP FTPMAIL Comments and Questions Acknowledgments Acknowledgments to the Third Edition I What Is C? How Programming Works Brief History of C How C Works How to Learn C Basics of Program Writing Programs from Conception to Execution Wrappers Creating a Real Program Creating a Program Using a Command- Line Compiler Step 1. Create a Place for Your Program Step 2. Create the Program Step 3. Run the Compiler. UNIX cc compiler (generic UNIX)Free Software Foundation's gcc compiler Borland's Turbo C++ under MS-DOS Borland C++ under MS-DOS and Windows Microsoft Visual C++ Step 4. Execute the Program Creating a Program Using an Integrated Development Environment Step 1. Create a Place for Your Program Step 2. Enter, Compile, and Run Your Program Using the IDE Turbo C++ Borland C++ Microsoft Visual C++ Getting Help on UNIX Getting Help in an Integrated Development Environment IDE Cookbooks Turbo C++ Borland C++ Microsoft Visual C++ Programming Exercises Style Introduction. Common Coding PracticesCoding Religion Indentation and Code Format Clarity Simplicity Summary Basic Declarations and Expressions Elements of a Program Basic Program Structure Simple Expressions Variables and Storage Variable Declarations Integers Assignment Statements printf Function Floating Point Floating Point Versus Integer Divide Characters Answers Programming Exercises Arrays, Qualifiers, and Reading Numbers Arrays Strings Reading Strings Multidimensional Arrays Reading Numbers Initializing Variables Types of Integers Types of Floats Constant Declarations. Hexadecimal and Octal ConstantsOperators for Performing Shortcuts Side Effects ++x or x++ More Side-Effect Problems Answers Programming Exercises Decision and Control Statements if Statement else Statement How Not to Use strcmp Looping Statements while Statement break Statement continue Statement Assignment Anywhere Side Effect Answer Programming Exercises Programming Process Setting Up Specification Code Design Prototype Makefile Generic UNIX UNIX with the Free Software Foundation's gcc Compiler Borland C++ Turbo C++ Visual C++ Testing Debugging Maintenance. RevisionsElectronic Archaeology Marking Up the Program Using the Debugger Text Editor as a Browser Add Comments Programming Exercises II More Control Statements for Statement switch Statement switch, break, and continue Answers Programming Exercises Variable Scope and Functions Scope and Class Functions Functions with No Parameters Structured Programming Recursion Answers Programming Exercises C Preprocessor #define Statement #define vs. const Conditional Compilation include Files Parameterized Macros Advanced Features Summary Answers Programming Exercises.

Similar books