Page 17 - C-Language
P. 17
Pass a 2D-array to a function 260
Using flat arrays as 2D arrays 266
Chapter 43: Pointers 267
Introduction 267
Syntax 267
Remarks 267
Examples 267
Common errors 267
Not checking for allocation failures 268
Using literal numbers instead of sizeof when requesting memory 268
Memory leaks 268
Logical errors 269
Creating pointers to stack variables 269
Incrementing / decrementing and dereferencing 270
Dereferencing a Pointer 271
Dereferencing a Pointer to a struct 271
Function pointers 272
See also 274
Initializing Pointers 274
Caution: 274
Caution: 275
Address-of Operator ( & ) 275
Pointer Arithmetic 275
void* pointers as arguments and return values to standard functions 275
Const Pointers 276
Single Pointers 276
Pointer to Pointer 277
Same Asterisk, Different Meanings 279
Premise 279
Example 279
Conclusion 279
Pointer to Pointer 280

