Thread: passing by refrence isn't allowed in C?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #13
    Registered User Dante Shamest's Avatar
    Join Date
    Apr 2003
    Posts
    970
    but of course C can pass by reference...
    No...C only supports passing by value.
    C cannot pass by reference. It only simulates it. It can pass a reference to something through a pointer variable.

    But a value is copied, and that value is an address, making it pass-by-value.

    P.S. If you don't believe me, I suggest you email this guy:
    [email protected]
    Last edited by Dante Shamest; 10-07-2003 at 02:09 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. We Got _DEBUG Errors
    By Tonto in forum Windows Programming
    Replies: 5
    Last Post: 12-22-2006, 05:45 PM
  2. Newb Question on Passing Objects as Parameters
    By Mariano L Gappa in forum C++ Programming
    Replies: 12
    Last Post: 11-29-2006, 01:08 PM
  3. Replies: 14
    Last Post: 03-18-2006, 09:14 AM
  4. 'Passing by Refrence for Efficiency', Copy Constructors?
    By Zeusbwr in forum C++ Programming
    Replies: 4
    Last Post: 10-23-2004, 07:11 AM
  5. passing by refrence problems
    By rippascal in forum C++ Programming
    Replies: 2
    Last Post: 03-22-2002, 10:04 PM