Mega Code Archive

 
Categories / C Tutorial / Function
 

If the function does not return any value

Set the return data type as void. #include <stdio.h> void add() {    printf("asdfasdf"); } main () {     add();        } asdfasdfasdfasdfasdfasdf