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

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Smarta
    New Member
    • Nov 2013
    • 4

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

    void print_massive(i nt(*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...
  • Smarta
    New Member
    • Nov 2013
    • 4

    #2
    I did try the ; , and ) before it, but that only makes it ask me for declaration specifiers

    Comment

    • Banfa
      Recognized Expert Expert
      • Feb 2006
      • 9067

      #3
      This
      Code:
      void print_massive(int(*data[N][M])
      should be
      Code:
      void print_massive(int(*data[N][M])[B])[/B]
      Note the extra )

      Comment

      Working...