Quiz: Define two functions and have them one call the other. - C Language Basics

C examples for Language Basics:printf

Description

Quiz: Define two functions and have them one call the other.

Demo Code

#include <stdio.h>  
void one_three(void);  
void two(void);  
int main(void)  
{  /*from  ww  w. j a va 2 s. com*/
    printf("starting now:\n");  
    one_three();  
    printf("done!\n");  
    return 0;  
}  
void one_three(void)  
{  
    printf("one\n");  
    two();  
    printf("three\n");  
}  
void two(void)  
{  
    printf("two\n");  
}

Result


Related Tutorials