Mathematics 1201: Programming in C Reading and Homework Assignment #6 Prof. Wickerhauser Due 6 October 1999 You are encouraged to collaborate on homework, and to work additional exercises from the indicated problem sections, although the homework grade will be based only on the exercises listed below. Please return your solutions to me by the end of class. LATE HOMEWORK WILL NOT BE ACCEPTED. Read Chapter 6 of the textbook. Do Exercises 1 and 8 of Chapter 6, pp. 138--139. Extra Problem 1: Will this program compile and run correctly? If not, at which line will it give a warning or error at compile time, or at which line will it crash at run time? main(void) { const int * x; int const * y; int * const z; x = 0; y = 0; z = 0; *x = 1; *y = 2; *z = 3; return 0; } Extra Problem 2: (a) What is the output of the following program: #include main(void) { float x; float *xp1, *xp2; xp1 = xp2 = &x; ++xp2; printf("xp1 = %d, xp2 = %d, xp2-xp1 = %d\n", xp1, xp2, xp2-xp1); return 0; } (b) How many memory locations are used to store a float?