Odd... I get this:
Code:
H:\Projects\test.c(34) : error C2143: syntax error : missing ';' before 'type'
H:\Projects\test.c(36) : error C2065: 'choice' : undeclared identifier
H:\Projects\test.c(37) : error C2065: 'i' : undeclared identifier
H:\Projects\test.c(39) : error C2065: 'num' : undeclared identifier
Which tells me that this line is the problem:
Code:
struct NODE* ptr;
ptr=NULL;
int choice,i,num;
Which means that this statement should not precede variable declarations.
Better luck with this?
Code:
struct NODE* ptr=NULL;
int choice,i,num;