I saw this code in C++ but when tried to C causes an error:
-------------
void function(int &a) { a = 5; }
-------------
with this, passed in "function" the "a" pointer instead of "a" value, BUT
inside "function" I have access to "a" value not with "*a" but with "a".
Why this is not working in C?
-------------
void function(int &a) { a = 5; }
-------------
with this, passed in "function" the "a" pointer instead of "a" value, BUT
inside "function" I have access to "a" value not with "*a" but with "a".
Why this is not working in C?
Comment