C
coolguyaroundyou
Does C have Call-By-Reference for a function??
I think it doesn't. Am I right?
I think it doesn't. Am I right?
Technically speaking, does C have Call-By-Reference for a function??
I think it doesn't. Am I right?
Does C have Call-By-Reference for a function??
There is no call-by reference in C butDoes C have Call-By-Reference for a function??
I think it doesn't. Am I right?
You are right: C function arguments are passed by value.
>
> Not directly, no; all parameters are passed by value. But of course
> you can do the equivalent by passing pointers.
Dik T. Winter said:That is not the same as call by reference. With call by reference the
only place where you actually can *see* it is call by reference is in
the header of a function. Not in the body, nor in the actual call.
Nick said:you mean "wrong"?
Two wrongs don't make a right, but three lefts do.
jameskuyper said:Eric Sosman wrote:
...
I miss street grids! Where I currently live, three left turns
often get me on a dead-end street, and usually get me lost -
they are seldom the equivalent of a right turn.
jameskuyper said:Eric Sosman wrote:
...
I miss street grids! Where I currently live, three left turns often
get me on a dead-end street, and usually get me lost - they are seldom
the equivalent of a right turn.
CBFalconer said:You are allowed to move out of Boston.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.