A program using two functions in one file - C Language Basics

C examples for Language Basics:Hello World

Description

A program using two functions in one file

Demo Code

#include <stdio.h>

void my_function(void);      /* C function prototyping */

int main(void){
    printf("main.\n");
    my_function();// w w  w.j  a  v  a2  s  .  co  m
    printf("here.\n");
    
    return 0;
}

void my_function(void)       /* start of function definition */
{
    printf("hi?\n");
}

Related Tutorials