Define a Function before main function, no need for the prototype - C Function

C examples for Function:Function Definition

Description

Define a Function before main function, no need for the prototype

Demo Code

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

Result


Related Tutorials