/* * Assignment.question3 * Chapter 11 * By John Stile * Purpose: */ #include int main(void) { float aa,bb,cc; // declare 3 floats, aa=bb=cc=5; // initialize to 5 float *paa,*pbb,*pcc; // declare 3 float pointers paa=&aa; // pointer holds address of aa pbb=&bb; // pointer holds address of bb pcc=&cc; // pointer holds address of cc printf("%9s\t%s\t%s\t%s\n", "","aa","bb","cc"); // print column heaers printf("Original:\t%3.2f\t%3.2f\t%3.2f\n",*paa,*pbb,*pcc); *paa=*pbb=*pcc=10; // reassign value of thing at pointer to 10. printf("New: \t%3.2f\t%3.2f\t%3.2f\n",*paa,*pbb,*pcc); return 0; }