Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

A little help with pointers

Name: Anonymous 2011-02-04 15:02


main ()
{
     int A[1][2][3][4];
     //I put random values in it
     G(&A[0][0][0][0]);
}

void G(int *A)
{
     cout << A[2][2][3][4];
}


It says me "Invalid type 'int[int]' for array subscript"... Why?

Name: Anonymous 2011-02-04 15:28

>>6

See what >>1 is calling it with though.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List