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