discussion about array parameter?
different between two declare
void fn_Test(char arr[10]
and
void fn_Test(char arr[])
They're the same.
1 2 3 4
|
// all the same:
void fn(char arr[10]);
void fn(char arr[]);
void fn(char* arr);
|
The first one (arr[10]) more clearly shows your intent, but as far as the language is concerned, there's no difference.
yes, i also think that, thanks so much.
Topic archived. No new replies allowed.