Code:
void printListReversed(node *list) {113
114
115
116 if (list!=NULL) return;
117
118 double x,y;
119 list = list->next;
120
121 do
122 {
123 printf("%lf \t %lf",x,y);
124 list= list->prev;
125 } while (list->next !=NULL){
126
127
128
129 /* list = list->next; list->next */
130 }
131
132
133 }
Code:
~/> icc -ansi -Wall -c -o list.o list.c
list.c(125): error: expected a ";"
} while (list->next !=NULL){
^
list.c(133): warning #12: parsing restarts here after previous syntax error
}
^
compilation aborted for list.c (code 2)
Hello, I am having errors in my code and I can't seem to figure out.
anyone can help, please.
Thanks in advance