Short followup question - something I don't really understand about char* in general.
if I did say
Then the caller would actually notice the change in pnInput.
void myFunction(int* pnInput)
*pnInput = 500;
I think it crashes (can't try at the mo).
void myFunction(char* szInput)
*szInput = 50;
(I'm aware that the proper way to do it is to have the function header use a char** pszInput, but I just want to understand what's going on anyway)
Are char*s privileged in some way?
These are pretty basic questions, so if you don't want to answer, I'd be absolutely glad to just be linked to an article or something, so I can read up myself and play around.