I recently asked this question: Why aren't my pointers to integer arrays working?
One of the suggestions was to use regular variables instead of pointers pointing to variables.
I've programmed in Java in the past. If I understand correctly, if you have this code in Java:
void test(b) {
b++;
}
void main() {
int a = 0;
test(a);
}
Then a would remain at 0. But if I understood correctly, in C, if I have this code:
void test(b) {
b++;
}
int main() {
int a = 0;
test(a);
return 0;
}
Then a becomes 1?