|
|
const char * (in case of character data and C++ use const std::string& instead). If you already know the size that you want then pass char str[size_of_array]char *str instead of char str[]
char *str is identical to char str[], and a can be used inside the same way -- as it is a pointer, not withstanding the [] notation.
| If you already know the size that you want then pass char str[size_of_array] |
void func(char str[size_of_array]) ;