On 2/3/07, Joseph A. Marrero <[EMAIL PROTECTED]> wrote:
> I think sizeof will only work on statically allocated
> arrays. Consider the following:
>
>
> #include <iostream>
> using namespace std;
>
> int main()
> {
>        int array_one[ 25 ];
>        int *array_two = new int[ 25 ];

array_two isn't an array, it's a pointer to an int. The int it happens
to point to is the first item in an array.


-- 
PJH

#706281 +(1868)- [X]
TriPod11: bush ain't THAT bad...he kinda knows what he's doin
idaredbeet08: Please, Monica Lewenski had more President in her than
George Bush ever will.

Reply via email to