Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > array variable type, question about semantics

Reply
Thread Tools

array variable type, question about semantics

 
 
Jason Sperry
Guest
Posts: n/a
 
      12-07-2005
int a[10];

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

Jason
 
Reply With Quote
 
 
 
 
Alf P. Steinbach
Guest
Posts: n/a
 
      12-07-2005
* 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?
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Question about C semantics/optimizing C compilers Michael Schumacher C Programming 9 07-02-2009 11:26 AM
simple question re list iteration semantics Esmail Python 4 04-22-2009 03:11 AM
Best question about semantics, database or linked data wins admission to LinkedData Planet in New York Ken North XML 0 06-04-2008 11:26 AM
"Variable variable name" or "variable lvalue" mfglinux Python 11 09-12-2007 03:08 AM
JavaScript Semantics Question (setTimeout) Ian A. Mason Javascript 2 07-29-2006 11:10 PM



Advertisments