Re Exercise 6-10 Extended Parameters Passed
Hi,
Firstly this is a great exercise to get one's head around! The query I have is the passing of parameters to the functions.
The first two functions receive the pointer to the buffer as char* str but the subsequent functions which are called by these first two receive the pointer to the position in the buffer as const char* str.
Can someone please help me understand why the subsequent called functions receive the pointer as const?
Thanking you in anticipation for any advice.
Regards, Necuima
|