Mega Code Archive

 
Categories / C Tutorial / Function
 

Function is defined after main

#include <stdio.h> f1(int *k); main ( ){     int i;     i = 0;     printf (" The value of i before call %d \n", i);     f1 (&i);     printf (" The value of i after call %d \n", i); } f1(int *k) {     *k = *k + 10; } The value of i before call 0 The value of i after call 10