Thread: c++ array question please explain

  1. #1
    Registered User
    Join Date
    Nov 2009
    Posts
    4

    c++ array question please explain

    I came accross this question in a book i recently bought and i am thouroughly confused.

    -The number inside the brackets of an array definition is the ________, but the number inside an arrays brackets in an assignment statement, or any other statement that works with the contents of the array is the _________.

    I have no idea, any clarification would be nice - thanks

  2. #2
    Lurking whiteflags's Avatar
    Join Date
    Apr 2006
    Location
    United States
    Posts
    9,613
    The first blank asks about this number
    char foo[BUFSIZ];

    The second blank asks about numbers of this kind
    foo[x] = y;

    Chances are there are words you learned in class to talk about these numbers. If you can't think of anything then just describe the obvious.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. question about multidimensional arrays
    By richdb in forum C Programming
    Replies: 22
    Last Post: 02-26-2006, 09:51 AM
  2. Dynamic Mutli dimensional Array question.
    By fatdunky in forum C Programming
    Replies: 6
    Last Post: 02-22-2006, 07:07 PM
  3. Array of Structs question
    By WaterNut in forum C++ Programming
    Replies: 10
    Last Post: 07-02-2004, 02:58 PM
  4. Help with an Array
    By omalleys in forum C Programming
    Replies: 1
    Last Post: 07-01-2002, 08:31 AM
  5. Hi, could someone help me with arrays?
    By goodn in forum C Programming
    Replies: 20
    Last Post: 10-18-2001, 09:48 AM