Find the error in the following program struct point {struct point *next; int data; } x; main() {int i; for(x=p;x!=0;) x=x->next,x++; freelist(x); } freelist(x) {free(x); return }

Showing Answers 1 - 1 of 1 Answers

bardolf

  • Oct 18th, 2006
 

there's no definition of p and the cycle should start p=x ...... i hope ;-)

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions