Check out the int value change before and after function call
#include <stdio.h> void f(int *k) { *k = *k + 10; } main () { int i; i = 0; printf (" i before call %d \n", i); f(&i); printf ("i after call %d \n", i); }