error: expected ‘)’ before ‘[’ token error line is - void display(ptr[i]); this is the error which i get after compilation, what does it mean, i have written a simple program in C
error: expected ‘)’ before ‘[’ token error line is - void display(ptr[i]); this is the error which i get after compilation, what does it mean, i have written a simple program in C
I can only imagine you are missing a ')' on the line above that line. But more source code would help in identifying the problem.
You need to give more context, but it looks like you are making a forward declaration. If so, you need to provide a formal argument type. Right now it looks like you are supplying an "actual" argument.
Also, be sure you have a semicolon finishing the prior line. The lack of which can give some very strange error messages.