1 Chapter 8 Pointers A Review A 1 What is a pointer? Give at least three examples of pointers of different data types A 2 Differentiate the following expressions when variable is a pointer and when no[.]
Chapter 8: Pointers A Review A.1 What is a pointer? Give at least three examples of pointers of different data types A.2 Differentiate the following expressions when variable is a pointer and when not by determining which expressions are valid and which not, which expressions return a pointer and which not: &variable, *variable, **variable, &*variable, *&variable A.3 What are differences between a fixed-size array of integer numbers and an array of integer numbers controlled via a pointer? int a[5] = {1, 2, 3, 4, 5}; int* aPtr = (int *)malloc(5*sizeof(int)); int i; for (i=0; i