C: Error: Expected ')' Before ';' Token
This Seems Like the Simplest Code, but I Don't Know Why It Won't Compile: Switch(Choice) { Case 0: Printf("%D", Loop_Limit); /* This Line Gives the Error */...
This seems like the simplest code, but I don't know why it won't compile:
switch(choice) {
case 0:
printf("%d", LOOP_LIMIT); /* this line gives the error */
break;
case 1:
when I comment out the line it compiles fine
1 Answer
Your code has something like this:
#define LOOP_LIMIT 10;
^
Remove this semicolon.