C examples for Function:Function Definition
Define a Function before main function, no need for the prototype
#include <stdio.h> void printMessage (void){ printf ("tutorial from book 2s.c om.\n"); } int main (void) { printMessage ();// w ww . jav a 2 s . c o m return 0; }