Princeton University
COS 217:  Introduction to Programming Systems

Precept 9:  C Declarations and Definitions

Purpose

Present features of the C programming language that are particularly important and difficult to understand

C Declarations and Definitions

C "const" Declarations

Pointers to constants, constant pointers, constant pointers to constants, illegal and legal mismatches

C Variable Declarations and Definitions

Declaration vs. definition

Scope, linkage, and duration

C Function Declarations and Definitions

Static function definitions

Complex C Declarations

The "right-left rule"

Copyright © 2002 by Robert M. Dondero, Jr.