10.12.05 CISC181 Wednesday (1) findMax.cc: finding the maximum value in an array (2) findMax2.cc: use a function to print values in an array and to find the maximum value in an array (3) findMax3.cc: use a character array (i.e. a C string) to pass in the name of the array we want to print. To do that, we'll need this const stuff... Talk about const char * const name And about const char * const a for arrays in general... char *arrayname; // no protection if (arrayname = NULL) // this would be a logic error, not compiler error ... if (arrayname[0] = 'x') // logic error, not compiler error ... const char * arrayname; if (arrayname = NULL) // this would be a logic error, not compiler error ... if (arrayname[0] = 'x') // compiler error ... char * const arrayname; // constant pointer to char if (arrayname = NULL) // compiler error ... if (arrayname[0] = 'x') // this would be a logic error, not compiler error ... const char * const arrayname; // constant pointer to char constant if (arrayname = NULL) // compiler error ... if (arrayname[0] = 'x') // compiler error ...