C Pocket Reference: C Syntax and Fundamentals

C Pocket Reference: C Syntax and Fundamentals

C Pocket Reference: C Syntax and Fundamentals

C Pocket Reference: C Syntax and Fundamentals

eBook

$16.49  $21.99 Save 25% Current price is $16.49, Original price is $21.99. You Save 25%.

Available on Compatible NOOK Devices and the free NOOK Apps.
WANT A NOOK?  Explore Now

Related collections and offers


Overview

C is one of the oldest programming languages and still one of the most widely used. Whether you're an experienced C programmer or you're new to the language, you know how frustrating it can be to hunt through hundreds of pages in your reference books to find that bit of information on a certain function, type or other syntax element. Or even worse, you may not have your books with you. Your answer is the C Pocket Reference. Concise and easy to use, this handy pocket guide to C is a must-have quick reference for any C programmer. It's the only C reference that fits in your pocket and is an excellent companion to O'Reilly's other C books.Ideal as an introduction for beginners and a quick reference for advanced programmers, the C Pocket Reference consists of two parts: a compact description of the C language and a thematically structured reference to the standard library. The representation of the language is based on the ANSI standard and includes extensions introduced in 1999. An index is included to help you quickly find the information you need.This small book covers the following:

  • C language fundamentals
  • Data types
  • Expressions and operators
  • C statements
  • Declarations
  • Functions
  • Preprocessor directives
  • The standard library
O'Reilly's Pocket References have become a favorite among programmers everywhere. By providing a wealth of important details in a concise, well-organized format, these handy books deliver just what you need to complete the task at hand. When you've reached a sticking point in your work and need to get to a solution quickly, the new C Pocket Reference is the book you'll want to have.

Product Details

ISBN-13: 9781449378899
Publisher: O'Reilly Media, Incorporated
Publication date: 11/20/2002
Sold by: Barnes & Noble
Format: eBook
Pages: 144
File size: 1 MB

About the Author

Peter Prinz specializes in developing software and in teaching Assembler, C/C++/C#, Java, Windows (MFC), and UNIX system programming. As the chief developer and cofounder of an IT company, Peter has gained extensive experience in software development for computer telephony. As a seminar leader and key course developer at a professional consulting and training company he has taught courses to thousands of software developers. Peter is the co-author with his wife Ulla of several other books on software development in C/C++. More recent projects include "A Complete Guide to Programming in C++" (Jones & Bartlett Publishers, 2002). Peter currently resides in Munich, Germany, with Ulla and their two children: Vivi and Jeany. He may be contacted by email at prinz_peter@t-online.de

Table of Contents

Introduction1
Fundamentals2
C Program Structure3
Character Sets4
Identifiers6
Categories and Scope of Identifiers7
Basic Types9
Integer Types9
Real and Complex Floating Types11
The Type void13
Constants14
Integer Constants14
Floating Constants16
Character Constants and String Literals16
Expressions and Operators18
Arithmetic Operators20
Assignment Operators21
Relational Operators and Logical Operators22
Logical Operators23
Bitwise Operators24
Memory Accessing Operators25
Other Operators27
Type Conversions29
Integer Promotion29
Usual Arithmetic Conversions30
Type Conversions in Assignments and Pointers30
Statements31
Block and Expression Statements32
Jumps33
Loops35
Unconditional Jumps37
Declarations39
General Syntax and Examples39
Complex Declarations40
Variables41
Storage Classes41
Initialization42
Derived Types43
Enumeration Types43
Structures, Unions, and Bit-Fields45
Array49
Pointers52
Type Qualifiers and Type Definitions55
Functions57
Function Prototypes58
Function Definitions59
Function Calls61
Functions with Variable Numbers of Arguments62
Linkage of Identifiers64
Preprocessing Directives65
Standard Library73
Standard Header Files73
Input and Output74
Error Handling for Input/Output Functions76
General File Access Functions76
File Input/Output Functions79
Numerical Limits and Number Classification87
Value Ranges of Integer Types87
Range and Precision of Real Floating Types88
Classification of Floating-Point Numbers90
Mathematical Functions91
Mathematical Functions for Integer Types91
Mathematical Functions for Real Floating Types92
Optimizing Runtime Efficiency94
Mathematical Functions for Complex Floating Types95
Type-Generic Macros96
Error Handling for Mathematical Functions97
The Floating-Point Environment98
Character Classification and Case Mapping101
String Handling103
Conversion Between Strings and Numbers105
Multibyte Character Conversion107
Searching and Sorting108
Memory Block Management109
Dynamic Memory Management110
Time and Date111
Process Control113
Communication with the Operating System113
Signals114
Non-Local Jumps115
Error Handling for System Functions116
Internationalization116
Index121
From the B&N Reads Blog

Customer Reviews