C in a Nutshell
Home > Computing and Information Technology > Computer programming / software engineering > Programming and scripting languages: general > C in a Nutshell
C in a Nutshell

C in a Nutshell


     0     
5
4
3
2
1



Out of Stock


Notify me when this book is in stock
X
About the Book

Learning a language - any language - involves a process wherein you learn to rely less and less on instruction and more increasingly on the aspects of the language you've mastered. Whether you're learning French, Java, or C, at some point you'll set aside the tutorial and attempt to converse on your own. It's not necessary to know every subtle facet of French in order to speak it well, especially if there's a good dictionary available. Likewise, C programmers don't need to memorize every detail of C in order to write good programs. What they need instead is a reliable, comprehensive reference that they can keep nearby. C in a Nutshell is that reference. This long-awaited book is a complete reference to the C programming language and C runtime library. Its purpose is to serve as a convenient, reliable companion in your day-to-day work as a C programmer. "C in a Nutshell" covers virtually everything you need to program in C, describing all the elements of the language and illustrating their use with numerous examples. The book is divided into three distinct parts. The first part is a fast-paced description, reminiscent of the classic "Kernighan & Ritchie" text on which many C programmers cut their teeth. It focuses specifically on the C language and preprocessor directives, including extensions introduced to the ANSI standard in 1999. These topics and others are covered: Numeric constants; Implicit and explicit type conversions; Expressions and operators; Functions; Fixed-length and variable-length arrays; Pointers; Dynamic memory management; and Input and output. The second part of the book is a comprehensive reference to the C runtime library; it includes an overview of the contents of the standard headers and a description of each standard library function. Part III provides the necessary knowledge of the C programmer's basic tools: the compiler, the make utility, and the debugger. The tools described here are those in the GNU software collection. "C in a Nutshell" is the perfect companion to "K&R", and destined to be the most reached-for reference on your desk.

Table of Contents:
Preface I. Language 1. Language Basics Characteristics of C The Structure of C Programs Source Files Comments Character Sets Identifiers How the C Compiler Works 2. Types Typology Integer Types Floating-Point Types Complex Floating-Point Types (C99) Enumerated Types The Type void 3. Literals Integer Constants Floating-Point Constants Character Constants String Literals 4. Type Conversions Conversion of Arithmetic Types Conversion of Nonarithmetic Types 5. Expressions and Operators How Expressions Are Evaluated Operators in Detail Constant Expressions 6. Statements Expression Statements Block Statements Loops Selection Statements Unconditional Jumps 7. Functions Function Definitions Function Declarations How Functions Are Executed Pointers as Arguments and Return Values Inline Functions Recursive Functions Variable Numbers of Arguments 8. Arrays Defining Arrays Accessing Array Elements Initializing Arrays Strings Multidimensional Arrays Arrays as Arguments of Functions 9. Pointers Declaring Pointers Operations with Pointers Pointers and Type Qualifiers Pointers to Arrays and Arrays of Pointers Pointers to Functions 10. Structures, Unions, and Bit-Fields Structures Unions Bit-Fields 11. Declarations General Syntax Type Names typedef Declarations Linkage of Identifiers Storage Duration of Objects Initialization 12. Dynamic Memory Management Allocating Memory Dynamically Characteristics of Allocated Memory Resizing and Releasing Memory An All-Purpose Binary Tree Characteristics Implementation 13. Input and Output Streams Files Opening and Closing Files Reading and Writing Random File Access 14. Preprocessing Directives Inserting the Contents of Header Files Defining and Using Macros Conditional Compiling Defining Line Numbers Generating Error Messages The #pragma Directive The _Pragma Operator Predefined Macros II. Standard Library 15. The Standard Headers Using the Standard Headers Contents of the Standard Headers 16. Functions at a Glance Input and Output Mathematical Functions Character Classification and Conversion String Processing Multibyte Characters Converting Between Numbers and Strings Searching and Sorting Memory Block Handling Dynamic Memory Management Date and Time Process Control Internationalization Nonlocal Jumps Debugging Error Messages 17. Standard Library Functions III. Basic Tools 18. Compiling with GCC The GNU Compiler Collection Obtaining and Installing GCC Compiling C Programs with GCC C Dialects Compiler Warnings Optimization Debugging Profiling Option and Environment Variable Summary 19. Using make to Build C Programs Targets, Prerequisites, and Commands The Makefile Rules Comments Variables Phony Targets Other Target Attributes Macros Functions Directives Running make 20. Debugging C Programs with GDB Installing GDB A Sample Debugging Session Starting GDB Using GDB Commands Index

About the Author :
Peter Prinz directs system software development projects and teaches seminars on programming topics. He has written a number of books on C and C++. Tony Crawford is a freelance translator based just outside Berlin, Germany. In addition to regular software localization projects, he has translated books on network administration and ATM. A US native, he completed undergraduate work at Occidental College, Los Angeles; Universite de Perpignan, France; and Technische Universitat, Berlin. Tony translates from German into English.

Review :
"As with much of the Nutshell series, this book is aimed at the competent programmer who needs a quick reference, not at the beginner. As a teacher of C programming, I had been looking for a reference work which covered the C99 version of the language standard, and did so in a readable format free of omissions and errors. "C in a Nutshell" did not disappoint, and the utility of the standard library reference was a welcome surprise." - Graham Lee, news@UK, June 2006 "This excellent book should have been written years ago." - Paul Hudson, Linux Format, November 2006 - 8/10


Best Sellers


Product Details
  • ISBN-13: 9780596006976
  • Publisher: O'Reilly Media
  • Publisher Imprint: O'Reilly Media
  • Height: 223 mm
  • Returnable: N
  • Width: 181 mm
  • ISBN-10: 0596006977
  • Publisher Date: 24 Jan 2006
  • Binding: Paperback
  • Language: English
  • Weight: 732 gr


Add Photo
Add Photo

Customer Reviews

REVIEWS      0     
Click Here To Be The First to Review this Product
C in a Nutshell
O'Reilly Media -
C in a Nutshell
Writing guidlines
We want to publish your review, so please:
  • keep your review on the product. Review's that defame author's character will be rejected.
  • Keep your review focused on the product.
  • Avoid writing about customer service. contact us instead if you have issue requiring immediate attention.
  • Refrain from mentioning competitors or the specific price you paid for the product.
  • Do not include any personally identifiable information, such as full names.

C in a Nutshell

Required fields are marked with *

Review Title*
Review
    Add Photo Add up to 6 photos
    Would you recommend this product to a friend?
    Tag this Book Read more
    Does your review contain spoilers?
    What type of reader best describes you?
    I agree to the terms & conditions
    You may receive emails regarding this submission. Any emails will include the ability to opt-out of future communications.

    CUSTOMER RATINGS AND REVIEWS AND QUESTIONS AND ANSWERS TERMS OF USE

    These Terms of Use govern your conduct associated with the Customer Ratings and Reviews and/or Questions and Answers service offered by Bookswagon (the "CRR Service").


    By submitting any content to Bookswagon, you guarantee that:
    • You are the sole author and owner of the intellectual property rights in the content;
    • All "moral rights" that you may have in such content have been voluntarily waived by you;
    • All content that you post is accurate;
    • You are at least 13 years old;
    • Use of the content you supply does not violate these Terms of Use and will not cause injury to any person or entity.
    You further agree that you may not submit any content:
    • That is known by you to be false, inaccurate or misleading;
    • That infringes any third party's copyright, patent, trademark, trade secret or other proprietary rights or rights of publicity or privacy;
    • That violates any law, statute, ordinance or regulation (including, but not limited to, those governing, consumer protection, unfair competition, anti-discrimination or false advertising);
    • That is, or may reasonably be considered to be, defamatory, libelous, hateful, racially or religiously biased or offensive, unlawfully threatening or unlawfully harassing to any individual, partnership or corporation;
    • For which you were compensated or granted any consideration by any unapproved third party;
    • That includes any information that references other websites, addresses, email addresses, contact information or phone numbers;
    • That contains any computer viruses, worms or other potentially damaging computer programs or files.
    You agree to indemnify and hold Bookswagon (and its officers, directors, agents, subsidiaries, joint ventures, employees and third-party service providers, including but not limited to Bazaarvoice, Inc.), harmless from all claims, demands, and damages (actual and consequential) of every kind and nature, known and unknown including reasonable attorneys' fees, arising out of a breach of your representations and warranties set forth above, or your violation of any law or the rights of a third party.


    For any content that you submit, you grant Bookswagon a perpetual, irrevocable, royalty-free, transferable right and license to use, copy, modify, delete in its entirety, adapt, publish, translate, create derivative works from and/or sell, transfer, and/or distribute such content and/or incorporate such content into any form, medium or technology throughout the world without compensation to you. Additionally,  Bookswagon may transfer or share any personal information that you submit with its third-party service providers, including but not limited to Bazaarvoice, Inc. in accordance with  Privacy Policy


    All content that you submit may be used at Bookswagon's sole discretion. Bookswagon reserves the right to change, condense, withhold publication, remove or delete any content on Bookswagon's website that Bookswagon deems, in its sole discretion, to violate the content guidelines or any other provision of these Terms of Use.  Bookswagon does not guarantee that you will have any recourse through Bookswagon to edit or delete any content you have submitted. Ratings and written comments are generally posted within two to four business days. However, Bookswagon reserves the right to remove or to refuse to post any submission to the extent authorized by law. You acknowledge that you, not Bookswagon, are responsible for the contents of your submission. None of the content that you submit shall be subject to any obligation of confidence on the part of Bookswagon, its agents, subsidiaries, affiliates, partners or third party service providers (including but not limited to Bazaarvoice, Inc.)and their respective directors, officers and employees.

    Accept

    New Arrivals


    Inspired by your browsing history


    Your review has been submitted!

    You've already reviewed this product!