[code]
struct Account
{
int accNo;
char* name;
double balance;
double limit;
};
Account acc[8]; // this will create 8 instances of Account.
Account acc [8]; // this will generate the error.
If I understand correctly the point your trying to get at with the sample code above, White space between the variable name and brackets shouldn't do anything. It compiles for me at least.
From what I understand of c and c++ documentation: Account acc [8]; and Account acc[8] are two different things to compilers. Especially the ones that trying to reach the modern standards of c++ since [] has several meanings by itself in c++ now.