c++ array question please explain

This is a discussion on c++ array question please explain within the C++ Programming forums, part of the General Programming Boards category; I came accross this question in a book i recently bought and i am thouroughly confused. -The number inside the ...

  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
    Registered User whiteflags's Avatar
    Join Date
    Apr 2006
    Location
    United States
    Posts
    7,761
    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, 03:58 PM
  4. Help with an Array
    By omalleys in forum C Programming
    Replies: 1
    Last Post: 07-01-2002, 09:31 AM
  5. Hi, could someone help me with arrays?
    By goodn in forum C Programming
    Replies: 20
    Last Post: 10-18-2001, 10:48 AM

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