C examples for Function:Function Definition
Calling Functions in a for loop
#include <stdio.h> void printMessage (void) { printf ("tutorial from book 2s.c om.\n"); } int main (void) { int i;/* ww w . ja v a 2s . co m*/ for (i = 1; i <= 5; ++i) printMessage (); return 0; }