Multi-dimensional Arrays

Discussion in 'C++' started by mshetty@mail.com, Oct 10, 2006.

  1. Guest

    Hi,

    I am totally confused with the concept of arrays in CPP.

    Is a 3D Char array equivalent to a 2D String array?

    Thanks and Regards,
    M Shetty
     
    , Oct 10, 2006
    #1
    1. Advertisements

  2. wrote:
    > Hi,
    >
    > I am totally confused with the concept of arrays in CPP.
    >
    > Is a 3D Char array equivalent to a 2D String array?


    What do you mean by "String"? BTW, the type is actually
    "char", C++ is case sensitive, let's not forget that.

    If by "String" you mean "an array of char", then yes, a 2D
    array of "String" is in fact a 2D array of "array of char",
    or, by definition, a 3D array of char.

    V
    --
    Please remove capital 'A's when replying by e-mail
    I do not respond to top-posted replies, please don't ask
     
    Victor Bazarov, Oct 10, 2006
    #2
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    2
    Views:
    9,775
    Jim Lewis
    Mar 21, 2006
  2. Kevin
    Replies:
    10
    Views:
    1,536
    Chris Uppal
    Sep 15, 2005
  3. Ron Natalie

    Re: multi dimensional arrays

    Ron Natalie, Jul 9, 2003, in forum: C++
    Replies:
    3
    Views:
    624
    Shane Beasley
    Jul 11, 2003
  4. John Harrison
    Replies:
    4
    Views:
    7,131
    Default User
    Aug 19, 2003
  5. Icosahedron
    Replies:
    8
    Views:
    899
    Vivek
    Aug 21, 2003
  6. Gregory L. Hansen

    Dynamic multi-dimensional arrays.

    Gregory L. Hansen, Jun 3, 2004, in forum: C++
    Replies:
    6
    Views:
    42,677
    Steven T. Hatton
    Jun 4, 2004
  7. kak3012
    Replies:
    4
    Views:
    3,682
    kak3012
    Jan 23, 2005
  8. Wirianto Djunaidi
    Replies:
    2
    Views:
    373
    Wirianto Djunaidi
    Apr 29, 2008
Loading...