Results 1 to 15 of 15

Thread: Pass by Reference

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2001
    Posts
    485

    Pass by Reference [RESOLVED]

    Hi,

    I found this as a sample Function from an exercise.

    Code:
    int search(const tvector<Student>& list, const string& idnum);
    And I was wondering, is there any difference if the function was declared as
    Code:
    int search(const tvector<Student> &list, const string &idnum);
    What does the ampersand ( & ) means in the 1st code?

    Thanks.

    Harddisk
    Last edited by Harddisk; Oct 10th, 2005 at 10:13 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width