I am currently in pset3, implementing sort
. I chose to do selection sort and at the end of it I need to swap the numbers, but when I try to compile, I get this message:
implicit declaration of function 'swap' is invalid in C99 [-Werror,
-Wimplicit-function-declaration]
I included stdio.h
already and I don't know what to do anymore. here's my code:
[hidden for academic honesty]