Mega Code Archive

 
Categories / C / Function
 

Define two functions and make function call

#include <stdio.h> void f1(void), f2(void); int main(void) {   f1();   return 0; } void f1(void) {   int i;   for(i = 0; i < 10; i++)        f2(); } void f2(void) {   int i;   for(i = 0; i < 10; i++)        printf("%d ", i); }