C: error: expected ')' before ';' token

后端 未结 1 1674
小蘑菇
小蘑菇 2020-12-29 10:42

This seems like the simplest code, but I don\'t know why it won\'t compile:

    switch(choice) {
        case 0:
            printf(\"%d\", LOOP_LIMIT); /* t         


        
相关标签:
1条回答
  • 2020-12-29 11:00

    Your code has something like this:

    #define LOOP_LIMIT 10;
                         ^
                        Remove this semicolon.
    
    0 讨论(0)
提交回复
热议问题