|
-
March 22nd, 2010, 08:26 AM
#7
Re: A noob question on arrays:
It's always best to be as clear as possible. Additionally, writing &a[9][0] instead of just a[9] is better because although the two expressions have the same type and value in *this* case, only the first one will continue to work in exactly the same way if you changed the type of a from an int[20][20] to a std::vector< std::vector<int> > for some reason.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|