Tuesday, June 12, 2007

a member that points itself in a structre - C

Q. Which warning message could you encounter when compile time?

1: typedef struct tagNODE
2: {
3: int data; // we assume that node contains data as type of integer
4: struct NODE *next;
5: } NODE;




A. line4: warning: assignment from incompatible pointer type