If the function does not return any value : Function Return « Function « C Tutorial






Set the return data type as void.

#include <stdio.h>

void add() {
   printf("asdfasdf");
}
main ()
{
    add();       
    add();       
    add();       
}
asdfasdfasdfasdfasdfasdf








8.7.Function Return
8.7.1.If the function does not return any value
8.7.2.Return value as pointer
8.7.3.Functions That Return value