Category talk:C: Difference between revisions

(→‎Language Features: new section)
Line 13:
 
I was taught that C ''always'' passes parameters by value, and that it simulates pass-by-reference by passing (by value) the address of the entity being referred to. I suppose it is the difference between passing a thing and passing the name of the thing… —[[User:Dkf|Dkf]] 10:07, 31 May 2009 (UTC)
: The only way to do a reference to a "thing" is a pointer indeed. In C this is explicit. In other languages it is not... But pointers are the way C calls "by reference", so function(&c) is a passing of c by reference... then the reference can be dereferenced... not simulation! --[[User:ShinTakezou|ShinTakezou]] 13:46, 31 May 2009 (UTC)