By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,008 Members | 2,962 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,008 IT Pros & Developers. It's quick & easy.

Expected ';' ',' or ')' before '{' token

P: 4
void print_massive(int(*data[N][M])
int main;

it is that very { right there that is causing the entire program to not compile. It does have another bracket at the end of the void function. I am pretty stumped on this.
It does seem like a beginner mistake, but I've only been learning programming for 2 months...
Nov 29 '13 #1
Share this Question
Share on Google+
2 Replies

P: 4
I did try the ; , and ) before it, but that only makes it ask me for declaration specifiers
Nov 29 '13 #2

Expert Mod 5K+
P: 8,916
Expand|Select|Wrap|Line Numbers
  1. void print_massive(int(*data[N][M])
should be
Expand|Select|Wrap|Line Numbers
  1. void print_massive(int(*data[N][M]))
Note the extra )
Nov 29 '13 #3

Post your reply

Sign in to post your reply or Sign up for a free account.