C Programming Code Examples C > Functions Code Examples Creating a void user defined function that doesn't return anything Creating a void user defined function that doesn't return anything #include <stdio.h> /* function return type is void and it doesn't have parameters*/ void introduction() { printf("Hi\n"); printf("c.happycodings.com\n"); printf("C Programming Language"); /* There is no return statement inside this function, since its * return type is void */ } int main() { /*calling function*/ introduction(); return 0; }