A Little C Primer
From Wikibooks, the open-content textbooks collection
Contents |
[edit] Preface
This document is a quick introduction to the C programming language. It is written by a novice, and is intended for use by a novice. However, it does assume familiarity with a programming language.
The C programming language is sometimes referred to as a "middle-level" language. It provides low-level programming capability at the expense of some user-friendliness. Some cynics claim that "C combines the flexibility and power of assembly language with the user-friendliness of assembly language."
The original implementations of C were defined as described in the classic reference, THE C PROGRAMMING LANGUAGE, by Brian Kernighan and Dennis Ritchie. This definition left a few things to be desired, and the American National Standards Institute (ANSI) formed a group in the 1980s to tighten up the spec. The result was "ANSI C", which is the focus of this document.
[edit] Table of Contents
[edit] Introduction to C; Functions; Control Constructs
[edit] C Variables, Operators & Preprocessor Directives
[edit] C Input & Output
[edit] C Library Functions & Other Comments
- C Math Library
- C Standard Utility Library & Time Library
- The C sprintf Function
- C String Function Library
- C Character Class Test Library
- C Command Line Arguments
- Pointers to C Functions
- C Dynamic Memory Allocation & Deallocation
- Common Programming Problems in C