• Complain

Steve Oualline - Practical C programming

Here you can read online Steve Oualline - Practical C programming full text of the book (entire story) in english for free. Download pdf and epub, get meaning, cover and reviews about this ebook. year: 1997, publisher: OReilly Media, genre: Computer. Description of the work, (preface) as well as reviews are available. Best literature library LitArk.com created for fans of good reading and offers a wide selection of genres:

Romance novel Science fiction Adventure Detective Science History Home and family Prose Art Politics Computer Non-fiction Religion Business Children Humor

Choose a favorite category and find really read worthwhile books. Enjoy immersion in the world of imagination, feel the emotions of the characters or learn something new for yourself, make an fascinating discovery.

No cover
  • Book:
    Practical C programming
  • Author:
  • Publisher:
    OReilly Media
  • Genre:
  • Year:
    1997
  • Rating:
    5 / 5
  • Favourites:
    Add to favourites
  • Your mark:
    • 100
    • 1
    • 2
    • 3
    • 4
    • 5

Practical C programming: summary, description and annotation

We offer to read an annotation, description, summary or preface (depends on what the author of the book "Practical C programming" wrote himself). If you haven't found the necessary information about the book — write in the comments, we will try to find it.

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 elses 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 elses 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.

Steve Oualline: author's other books


Who wrote Practical C programming? Find out the surname, the name of the author of the book and a list of all author's works by series.

Practical C programming — read online for free the complete book (whole text) full work

Below is the text of the book, divided by pages. System saving the place of the last page read, allows you to conveniently read the book "Practical C programming" online for free, without having to search again every time where you left off. Put a bookmark, and you can go to the page where you finished reading at any time.

Light

Font size:

Reset

Interval:

Bookmark:

Make
Practical C Programming, 3rd Edition
Steve Oualline
Editor
Andy Oram

Copyright 2011 O'Reilly Media, Inc.

SPECIAL OFFER Upgrade this ebook with OReilly for more information on this - photo 1


SPECIAL OFFER: Upgrade this ebook with OReilly

for more information on this offer!

Please note that upgrade offers are not available from sample content.

A Note Regarding Supplemental Files

Supplemental files and examples for this book can be found at http://examples.oreilly.com/9781565923065/. Please use a standard desktop web browser to access these files, as they may not be accessible from all ereader devices.

All code files or examples referenced in the book will be available online. For physical books that ship with an accompanying disc, whenever possible, weve posted all CD/DVD content. Note that while we provide as much of the media content as we are able via free download, we are sometimes limited by licensing restrictions. Please direct any questions or concerns to .

Preface

This book is devoted to practical C programming. C is currently the premier language for software developers. Thats because its widely distributed and standard. Newer languages are available, such as C++, but these are still evolving. C is still the language of choice for robust, portable programming.

This book emphasizes the skills you will need to do real-world programming. It teaches you not only the mechanics of the C language, but the entire life cycle of a C program as well (including the programs conception, design, code, methods, debugging, release, documentation, maintenance, and revision).

Good style is emphasized. To create a good program you must do more than just type in code. It is an art in which writing and programming skills blend themselves together to form a masterpiece. True art can be created. A well-written program not only functions correctly, but is simple and easy to understand. Comments allow the programmer to include descriptive text inside the program. When clearly written, a commented program is highly prized.

A program should be as simple as possible. A programmer should avoid clever tricks. This book stresses simple, practical rules. For example, there are 15 operator precedence rules in C. These can be simplified into two rules:

  1. Multiply and divide come before add and subtract.

  2. Put parentheses around everything else.

Consider two programs. One was written by a clever programmer using all the tricks. The program contains no comments, but it works. The other program is well commented and nicely structured, but it doesnt work. Which program is more useful? In the long run, the broken one. It can be fixed. Although the clever program works now, sooner or later all programs have to be modified. The worst thing that you will ever have to do is to modify a cleverly written program.

This handbook is written for people with no previous programming experience or programmers who already know C and want to improve their style and reliability. You should have access to a computer and know how to use the basic functions such as a text editor and the filesystem.

Specific instructions are given for producing and running programs using the UNIX operating system with a generic cc compiler or the Free Software Foundations gcc compiler. For MS-DOS/Windows users, instructions are included for Borland C++, Turbo C++, and Microsoft Visual C++. (These compilers compile both C and C++ code.) The book also gives examples of using the programming utility make for automated program production.

How This Book is Organized

You must crawl before you walk. In , we take you on a complete tour of the software life cycle to show you how real programs are created.

In .

Chapter by Chapter

gives a brief description of the C language and its use. This chapter includes some background on the history of the language.

explains the basic programming process and gives you enough information to write a very simple program.

discusses programming style. Commenting a program is covered, as well as writing clear and simple code.

introduces you to simple C statements. Basic variables and the assignment statement are covered in detail, along with arithmetic operators +, -, *, /, and %.

covers arrays and more complex variables. Shorthand operators such as ++ and %= are also described.

explains simple decision statements including if, else, and for. A discussion of == versus = is presented.

takes you through all the necessary steps to create a simple program from specification through release. Structured programming, fast prototyping, and debugging are also discussed.

describes additional control statements. Included are while, break, and continue. The switch statement is discussed in detail.

introduces local variables, functions, and parameters.

describes the C preprocessor, which gives the programmer tremendous flexibility in writing code. The chapter also provides the programmer with a tremendous number of ways to mess up. Simple rules that help keep the preprocessor from becoming a problem are described.

discusses the logical C operators that work on bits.

explains structures and other advanced types. The sizeof operator and the enum type are included.

introduces C pointer variables and shows some of their uses.

describes both buffered and unbuffered input/output. ASCII and binary files are discussed, and you are shown how to construct a simple file.

describes how to debug a program, as well as how to use an interactive debugger. You are shown not only how to debug a program, but also how to write a program so that it is easy to debug. This chapter also describes many optimization techniques for making your program run faster and more efficiently.

uses a simple decimal floating-point format to introduce you to the problems inherent in floating point, such as roundoff error, precision loss, overflow, and underflow.

describes advanced uses of pointers for constructing dynamic structures such as linked lists and trees.

shows how to split a program into several files and use modular programming techniques. The make utility is explained in more detail.

describes the old, pre-ANSI C language and associated compilers. Although such compilers are rare today, a lot of code was written for them and there are still a large number of programs out there that use the old syntax.

describes the problems that can occur when you port a program (move it from one machine to another).

describes the do/while statement, the , operator, and the ? and : operators.

details the steps necessary to take a complex program from conception to completion. Information-hiding and modular programming techniques are emphasized.

lists some programming adages that will help you construct good C programs.

lists the octal, hexadecimal, and decimal representations of the ASCII character set that is now in almost universal use.

lists the limits you can expect to come up against in handling numbers with various sizes of memory allocation.

lists those impossible-to-remember rules, to help you when you encounter code written by rude people who didnt use enough parentheses.

, illustrates the manipulation of floating-point (real) numbers, which did not receive complete attention in the rest of the book.

Next page
Light

Font size:

Reset

Interval:

Bookmark:

Make

Similar books «Practical C programming»

Look at similar books to Practical C programming. We have selected literature similar in name and meaning in the hope of providing readers with more options to find new, interesting, not yet read works.


Reviews about «Practical C programming»

Discussion, reviews of the book Practical C programming and just readers' own opinions. Leave your comments, write what you think about the work, its meaning or the main characters. Specify what exactly you liked and what you didn't like, and why you think so.