Pass received argument to a callback function
问题 I am working on a Gtk project in C. From the main.c I call a function1 with an int address as a parameter. In that function1 , I can access that first value, but then at the end (inside) of that function1 , I call another function2 (which is a callback function to a click event) and pass it the address I got from the function1 parameter. But in function2 , the address have changed, definitely can't figure out why ... My project looks like this : [main.c] int main(...) { int a = 50; function1(