Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
C++
An array is just a pointer
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
Reply to thread
Message
[QUOTE="Paul, post: 4198092"] You read the standards , please pay particular attention to the part that states: "Except where it has been declared for a class (13.5.5), the subscript operator [] is interpreted in such a way that E1[E2] is identical to *((E1)+(E2)). Because of the conversion rules that apply to +, if E1 is an array and E2 an integer, then E1[E2] refers to the E2th member of E1." So please stop making ridiculous statements that are simply untrue. [] == oldarray {} == new array [][][][][][]{}{}{}{}{}{}{}{}{}{}{}[][][][][][][][] If I create an array within another array as above. Only the elements that are overwritten cease to exist, the elements not overwritten still exist because I did not free the memory. An array is a contiguous sequence of objects, not one single object(unless its size is 0 or 1). [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
C++
An array is just a pointer
Top