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. Advertising

  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. Advertising

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. Ken North
    Replies:
    0
    Views:
    439
    Ken North
    Jun 4, 2008
  2. Esmail
    Replies:
    4
    Views:
    227
    Esmail
    Apr 22, 2009
  3. Michael Schumacher

    Question about C semantics/optimizing C compilers

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

    JavaScript Semantics Question (setTimeout)

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

Share This Page