string* ptr[5] declares an array of 5 pointers, and instructs the compiler that they are pointer to strings. &input[x] is the address of input[x] |
|
readLines(ptr,5) the function reads the lines to the memory pointed at by ptr, which is the same memory addresses as read using input.