For the following C code (for swapping two numbers) I am getting the \"conflicting types\" error for swap function:
swap
#include #includ
With GCC, this is a warning, when you dont declare a function before using it, the compiler tries to guess the declaration using the type of call made to that function.Hence the behavior.