array variable type, question about semantics

Discussion in 'C++' started by Jason Sperry, Dec 7, 2005.

  1. Jason Sperry

    Jason Sperry Guest

    int a[10];

    What is the type of variable a, int[10] or int (&)[10]? Thank you in
    advance.

    Jason
     
    Jason Sperry, Dec 7, 2005
    #1
    1. Advertisements

  2. * Jason Sperry:
    > int a[10];
    >
    > What is the type of variable a, int[10] or int (&)[10]? Thank you in
    > advance.


    It's declared as

    int a[10];

    Remove the name and you have the type.

    --
    A: Because it messes up the order in which people normally read text.
    Q: Why is it such a bad thing?
    A: Top-posting.
    Q: What is the most annoying thing on usenet and in e-mail?
     
    Alf P. Steinbach, Dec 7, 2005
    #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. heyo
    Replies:
    3
    Views:
    1,341
    Dan Pop
    Apr 1, 2004
  2. pete
    Replies:
    4
    Views:
    1,010
    Dan Pop
    Apr 2, 2004
  3. Yevgen Muntyan

    #define ALLOCIT(Type) ((Type*) malloc (sizeof (Type)))

    Yevgen Muntyan, Feb 9, 2007, in forum: C Programming
    Replies:
    10
    Views:
    1,203
    Yevgen Muntyan
    Feb 13, 2007
  4. Ken North
    Replies:
    0
    Views:
    529
    Ken North
    Jun 4, 2008
  5. Esmail
    Replies:
    4
    Views:
    265
    Esmail
    Apr 22, 2009
  6. Michael Schumacher

    Question about C semantics/optimizing C compilers

    Michael Schumacher, Jul 1, 2009, in forum: C Programming
    Replies:
    9
    Views:
    461
    James Kuyper
    Jul 2, 2009
  7. Ian A. Mason

    JavaScript Semantics Question (setTimeout)

    Ian A. Mason, Jul 28, 2006, in forum: Javascript
    Replies:
    2
    Views:
    138
    Ian A. Mason
    Jul 30, 2006
  8. Aseem Bansal
    Replies:
    2
    Views:
    179
    Terry Reedy
    Sep 19, 2013
Loading...