Category Archives: C Programming

Appendix B – Standard Library

This appendix is a summary of the library defined by the ANSI standard. The standard library is not part of the C language…
Continue reading

Appendix A – Reference Manual

          Introduction This manual describes the C language specified by the draft submitted to ANSI on 31 October, 1988, for approval as ``American…
Continue reading

Chapter 8 – The UNIX System Interface

The UNIX operating system provides its services through a set of system calls, which are in effect functions within the operating system that…
Continue reading

Chapter 7 – Input and Output

Input and output are not part of the C language itself, so we have not emphasized them in our presentation thus far. Nonetheless,…
Continue reading

Chapter 6 – Structures

A structure is a collection of one or more variables, possibly of different types, grouped together under a single name for convenient handling.…
Continue reading

Chapter 5 – Pointers and Arrays

A pointer is a variable that contains the address of a variable. Pointers are much used in C, partly because they are sometimes…
Continue reading

Chapter 4 – Functions and Program Structure

Functions break large computing tasks into smaller ones, and enable people to build on what others have done instead of starting over from…
Continue reading

Chapter 3 – Control Flow

The control-flow of a language specify the order in which computations are performed. We have already met the most common control-flow constructions in…
Continue reading

Chapter 2 – Types, Operators and Expressions

Variables and constants are the basic data objects manipulated in a program. Declarations list the variables to be used, and state what type…
Continue reading

Chapter 1 – A Tutorial Introduction

Let us begin with a quick introduction in C. Our aim is to show the essential elements of the language in real programs,…
Continue reading