Quote Originally Posted by anw
I thought I had done it before, but now can't find where.
Maybe you had done something like this before:
Code:
string addrs[] = { "localhost", "example.com", "etc" };
"type name[]" declaration is fine when you initialize the array in the same statement.

I had always thought, though, that var[] and var * were equivalent. Now I know better
Not quite, although depending on context they can be used interchangeably. For example as a function parameter it doesn't make a difference, except when multidimensional arrays are concerned.