A C Refresher

This document was uploaded by one of our users. The uploader already confirmed that they had the permission to publish it. If you are author/publisher or own the copyright of this documents, please report to us by using this DMCA report form.

Simply click on the Download Book button.

Yes, Book downloads on Ebookily are 100% Free.

Sometimes the book is free on Amazon As well, so go ahead and hit "Search on Amazon"

Author(s): Mark Dalrymple

Language: English
Tags: programming; language; c++; cpp; ANSI C; K&R

A C Refresher
Table of Contents
Chapter 1  A C Refresher, Part 1: The Basics
The C Compiler Pipeline
The Preprocessor
Including other files
Macro expansion
Conditional compilation
Constants
Data Types
Predefined Types
Enumerations
Variables
LValues
Operators
Bitwise Operators
BitMasks
Functions
Logical Expressions
Logical Operators
Control Structures
if
while
for
do-while
switch
goto
For the More Curious: Multiple Source Files
For the More Curious: Common Compiler Errors
Challenge
Chapter 2   A C Refresher, Part 2: Pointers, Structures, and Arrays
Pointers
Pointer syntax
An actual use of pointers: pass by reference
Another use for pointers: strings
Pointer math
The NULL pointer
Structures
Declaring structures
Pointers to structs
Bitfields
Typedef
Casts
void *
Function pointers
Unions
Arrays
Arrays of pointers
For the More Curious: Data Structures Using Pointers
Challenge: