Simple problem but dont know the reason..
i'm new to c and while compiling small snippet of code on gcc its showing "expected specifier-qualifier-list before private" error.I'm not able to find out whats the reason causing this problem.if anyone's suggestions to solve this would be a great help.
here is my code,
private: // in this line i'm getting error as expected specifier-qualifier-list
void checkState(int nChoice)
if(nChoice == CONTINUE)
fun_ptr = add ;
else if (nChoice == STOP)
fun_ptr = pause ;
printf("u entered a wrong choice...exiting... ");
printf("enter ur choice 1 to start the process of addtion...2 for pausing...");