using brackets in the argument list is pretty non-standard, even if it will compile and is technicalyl correct. Your professor is wrong, it is ansi, but it does present a readability issue, since most people trying to read yoru code would be confused for a few milliseconds at what you are doing. The real test is whether -
will compile. if you can't use [] in a forward declaration without the variable name, and if the compiler wont accept it as synonymous rather than an overloaded function, then [] is incorrect.Code:void foo(int []);
void main(void){ // i love you ***** :D
int* bar = NULL;
foo(bar);
}