SE250:lab-4:Tsen009
Jump to navigation
Jump to search
Introduction
Well the the point of the lab was to follow the lab tasks really.... so stop beeing lazy, and go read the hand out and figure out which task is which
int length(Cons* list)
int length(Cons* list){ int lengthCounter = 0; for( ; list != nil; list = list->tail ) { lengthCounter ++; } return lengthCounter; }
this will return the number of elements in your list that you input...
===element_t first