I haven't used C in forever, and I can't remember how to change the value of a variable in main using a function. I have something that looks like the following, but the values never change:
I put a printf under the if statement in function, and it prints, but the value of b never changes.Code:void function(int, int *, int *...); void main() { int a, b=0, c=0...; . . . function(a, &b, &c...); } void function(int aa, int *bb, int *cc...) { if (aa==1) *bb++; }