P
Paul
You snipped something Leigh , please don't ignore this:
Odd multiples of > denotes Leigh bollocks..
Please enjoy:
a result of subscripting, is applied to this pointer, the result is the
pointedto (n - 1 )dimensional array"
.............
(*pa) produces the **pointedto** (n-1) dimensional array. That is.... if pa
is the **pointedto** 2dim array(which it is) then derefenrencing it should
result in a 1dim array.
std::cout<< typeid(*pa).name(); /*int [42]*/
e voila!
Proven wrong once again.
READ THE STANDARDS.
Lets see how he tries to wangle out of this one
Odd multiples of > denotes Leigh bollocks..
Please enjoy:
The standard states : "If the * operator, either explicitly or implicitly asIt's a pointer to....*drumroll* ..... what it points-to .You fail yet again. I never said "pa" was not a pointer to an array;
of course it is a pointer to an array; it is a pointer to a 1d array
of type int[42].
It's a pointer to a 2d array
According to you any dynamic array is, not unlike you, 1 dimension
short
of a picnic.
int (*pa)[42] = new int[42][42];
"pa" is a pointer to a 1D array of type int[42]; this is an
indisputable fact. The fact that what it points to is the initial
element of a 2D array of type int[42][42] is irrelevant.
You are a confused idiot. Read the standards.
Follow your own advice (see below).
a result of subscripting, is applied to this pointer, the result is the
pointedto (n - 1 )dimensional array"
.............
(*pa) produces the **pointedto** (n-1) dimensional array. That is.... if pa
is the **pointedto** 2dim array(which it is) then derefenrencing it should
result in a 1dim array.
std::cout<< typeid(*pa).name(); /*int [42]*/
e voila!
Proven wrong once again.
READ THE STANDARDS.
Lets see how he tries to wangle out of this one