Output message from two functions - C Language Basics

C examples for Language Basics:Hello World

Description

Output message from two functions

Demo Code

#include <stdio.h>  
void functionA(void);  
void functionB(void);  
int main(void)  {  
    functionA();  //from w ww. j  a  v  a  2s  .  c om
    functionA();  
    functionA();  
    functionB();  
    return 0;  
}  
void functionA(void)  
{  
    printf("test!\n");  
}  
void functionB(void)  
{  
    printf("hi!\n");  
}

Related Tutorials