C Tutorial Arrays
The C Language
C History
Euclid’s Algorithm in C
Euclid on the PDP-11
Pieces of C
C Types
Struct bit-fields
Code generated by bit fields
C Unions
Layout of Records and Unions
C Storage Classes
malloc() and free()
Dynamic Storage Allocation
Simple Dynamic Storage Allocation
malloc() and free() variants
Fragmentation and Handles
Automatic Garbage Collection

Lazy Logical Operators
The Switch Statement
setjmp/longjmp: Sloppy exceptions
Nondeterminism in C





Array: sequence of identical objects in memory 

int a[10]; means space for ten integers 

By itself, a   is the address of the first integer 

*a and a[0] mean the same thing


  • The address of a is not stored in memory: the compiler inserts code to compute it when it appears


  • Ritchie calls this interpretation the biggest conceptual jump from BCPL to C. Makes it unnecessary to initialize arrays in structures

Contact for more learning: webmaster@freehost7com