Modern C PDF book

Book Description

This book teaches you to take your C programming skills to new heights, whether you're just starting out with C or have more extensive experience. Organized by level, this comprehensive guide lets you jump in where it suits you best while still reaping the maximum benefits.

The C programming language has been around for a long time - the canonical reference for it is the book written by its creators, Kernighan and Ritchie [1978]. Since then, C has been used in an incredible number of applications. Programs and systems written in C are all around us: in personal computers, phones, cameras, set-top boxes, refrigerators, cars, mainframes, satellites, basically in any modern device that has a programmable interface.

Table of contents

  • Getting started
  • Imperative programming
  • Compiling and running
  • The principal structure of a program
  • Grammar
  • Declarations
  • Definitions
  • Statements
  • Warning to experienced C programmers
  • Everything is about control
  • Conditional execution
  • Iterations
  • Multiple selection
  • Expressing computations
  • Arithmetic
  • Operators that modify objects
  • Boolean context
  • The ternary or conditional operator
  • Evaluation order
  • Basic values and data
  • Basic types
  • Specifying values
  • Initializers
  • Named constants
  • Binary representions
  • Aggregate data types
  • Arrays
  • Pointers as opaque types
  • Structures
  • New names for types: typedef
  • Functions
  • Simple functions
  • main is special
  • Recursion
  • C Library functions
  • Mathematics
  • Input, output and file manipulation
  • String processing and conversion
  • Time
  • Runtime environment settings
  • Program termination and assertions
  • Style
  • Formatting
  • Naming
  • Organization and documentation
  • Interface documentation
  • Implementation
  • Macros
  • Pure functions
  • Pointers
  • Address-of and object-of operators
  • Pointer arithmetic
  • Pointers and structs
  • Opaque structures
  • Array and pointer access are the same
  • Array and pointer parameters are the same
  • Null pointers
  • Function pointers
  • The C memory model
  • A uniform memory model
  • Unions
  • Memory and state
  • Pointers to unspecific objects
  • Implicit and explicit conversions
  • Effective Type
  • Alignment
  • Allocation, initialization and destruction
  • malloc and friends
  • Storage duration, lifetime and visibility
  • Initialization
  • Digression: a machine model
  • More involved use of the C library
  • Text processing
  • Formatted input
  • Extended character sets
  • Binary files
  • Error checking and cleanup
  • Performance
  • Safety first
  • Optimizers are good enough
  • Help the compiler
  • Inline functions
  • Avoid aliasing: restrict qualifiers
  • Measurement and inspection
  • Functionlike macros
  • how does it work
  • Argument checking
  • Accessing the calling context
  • Variable length argument lists
Size1940.449 Kb
File typepdf
Downloads233
Created2019-09-09
Cover of Modern C PDF book

Download

  • A Byte of Python

    Download free course A Byte of Python, pdf file on 117 pages by Self-publishing....

  • How To Make Video Games

    Learn How To Make Video Games, This ebook shows you everything you need to know to make video games....

  • Think Perl 6: How to Think Like a Computer Scientist

    Want to learn how to program and think like a computer scientist? This practical guide gets you started on your programming journey with the help of Perl 6, the younger sister of the popular Perl programming language. Ideal for beginners, this hands-on book includes over 100 exercises with multiple ...

  • Android on x86

    Download free course Android on x86, pdf file on 375 pages by by Iggy Krajci, Darren Cummings....

  • Java applets

    This tutorial present an overview about Java programming and Applets including (applet execution,applets attributes,security,..)....

  • Learning C#

    Download a complete tutorial on C # entitled "Learn C #", PDF document on 1027 pages created by StackOverFlow....

  • Tutorial: Creating a Database Application using Delphi

    Tutorial: Creating a Database This tutorial guides you through the creation of an InterBase database application with which you can view and update a sample employee database. You will use the Delphi IDE to create the database application. ...

  • Biopython: Tutorial and Cookbook

    The Biopython Project is an international association of developers tools for computationa..., download free Python tutorial in PDF (360 pages) created by Jeff Chang ....

  • Free Algorithms eBook

    Download free Algorithm tutorial course in PDF, training file in 65 chapters and 327 pages. Free unaffiliated ebook created from Stack OverFlow contributor....

  • Excel VBA Notes for Professionals

    Download free course Excel VBA Notes for Professionals, pdf file on 127 pages by Stack Overflow Community....