Calling Functions in a for loop - C Function

C examples for Function:Function Definition

Description

Calling Functions in a for loop

Demo Code

#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;
}

Result


Related Tutorials