Array of pointers

This is a discussion on Array of pointers within the C++ Programming forums, part of the General Programming Boards category; A bit stuck here. Why is it that " One thing that arrays don't require that other variables do, is ...

  1. #1
    Registered User
    Join Date
    May 2009
    Posts
    29

    Array of pointers

    A bit stuck here. Why is it that " One thing that arrays don't require that other variables do, is a reference operator when you want to have a pointer to the string."

  2. #2
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Location
    Waterloo, Texas
    Posts
    5,657
    >> A bit stuck here. Why is it that " One thing that arrays don't require that other variables do, is a reference operator when you want to have a pointer to the string."

    I'm not sure what you mean by "reference operator", but I'm guessing it's referring to the fact that an array name resolves to it's address, as in:

    char buf[ 1024 ], * ptr = buf;



    ITSA
    Socket Library!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Returning an Array of Pointers to Objects
    By randomalias in forum C++ Programming
    Replies: 4
    Last Post: 04-29-2006, 02:45 PM
  2. two-dimensional dynamic array of pointers to classes
    By Timo002 in forum C++ Programming
    Replies: 4
    Last Post: 04-21-2005, 06:18 AM
  3. Passing pointers between functions
    By heygirls_uk in forum C Programming
    Replies: 5
    Last Post: 01-09-2004, 05:58 PM
  4. array of pointers to struct array
    By eth0 in forum C++ Programming
    Replies: 1
    Last Post: 01-08-2004, 05:43 PM
  5. array of pointers to structs
    By stumon in forum C Programming
    Replies: 7
    Last Post: 03-24-2003, 06:13 AM

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