#include #include /* If we "pass by value" to functions and try to modify * the value, we only modify the copy of the value. * Instead, we probably want to pass the pointer to the * value. * * See file pointer_with_function.c to see how to pass * a value to a function with a pointer (so we can modify * the actual value). */ void increment_int(int a); int main(int argc, char *arg[]) { int a=1; increment_int(a); printf("%d\n", a); return 0; } void increment_int(int a) { a=a+1; printf("in function: %i\n", a); }