If C does not support passing a variable by reference, why does this work?
#include void f(int *j) { (*j)++; } int main() { int i = 20;
You're not passing an int by reference, you're passing a pointer-to-an-int by value. Different syntax, same meaning.