Use function with pointer parameters
void f(int *k) { *k = *k + 10; } int main () { int i = 0; printf (" i before call %d \n", i); f(&i); printf (" i after call %d \n", i); }