syntax ?

This is a discussion on syntax ? within the C Programming forums, part of the General Programming Boards category; Code: int DialogPassword( char*& passwd ); What does the *& mean ? Thanks, Ken...

  1. #1
    Registered User
    Join Date
    Aug 2007
    Posts
    42

    syntax ?

    Code:
    int DialogPassword( char*& passwd );
    What does the *& mean ?

    Thanks,
    Ken

  2. #2
    Captain Crash brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,248
    Quote Originally Posted by bean66 View Post
    What does the *& mean ?
    It's a reference to a pointer.

    EDIT: It's C++, not C.

  3. #3
    Woof, woof! zacs7's Avatar
    Join Date
    Mar 2007
    Location
    Australia
    Posts
    3,459
    If you want to look into it more, read http://publib.boulder.ibm.com/infoce...ef/cplr233.htm

  4. #4
    Registered User
    Join Date
    Aug 2007
    Posts
    42
    Ah, thats why my c compiler didn't like it...
    *& in c is invalid.

    Thanks.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. more then 100errors in header
    By hallo007 in forum Windows Programming
    Replies: 20
    Last Post: 05-13-2007, 08:26 AM
  2. We Got _DEBUG Errors
    By Tonto in forum Windows Programming
    Replies: 5
    Last Post: 12-22-2006, 04:45 PM
  3. Using VC Toolkit 2003
    By Noobwaker in forum Windows Programming
    Replies: 8
    Last Post: 03-13-2006, 06:33 AM
  4. Connecting to a mysql server and querying problem
    By Diod in forum C++ Programming
    Replies: 8
    Last Post: 02-13-2006, 09:33 AM
  5. Dikumud
    By maxorator in forum C++ Programming
    Replies: 1
    Last Post: 10-01-2005, 06:39 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21