Virtual_X wrote:
some function make the data type of it's parameters as "const char*"
why not use char or char* instead
what would be different
The type 'char' can only help passing a _single_ character.
The type 'char*' can help passing an array of non-constant characters.
The type 'const char*' helps passing an array of constant characters.
It means the function needs an array (often it's a C-string), and the
function promises that it will not change the contents of the array.
V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask