I recently looked at some C code examples from the Steven Skiena Algorithm Guide online resources and were confused by the syntax of some of its function calls. Admittedly, it has been a while since C in uni, but I have never come across untyped function arguments, such as:
find_path(start,end,parents) int start; int end; int parents[]; { if ((start == end) || (end == -1)) printf("\n%d",start); else { find_path(starts,parents[end],parents); printf(" %d",end); } }
Is this valid syntax anymore? Are there / were there any advantages to this style declaration? This seems more verbose than the usual inline argument input.
source share