I really need to find out the correct syntax for passing a two dimensional array.

Can u explain ur problem a little bit more.....

i am trying to pass a 2d array to a fuction

dont you just pass it like this

int A[6][6] ;


func(int A[ ][6]){

..............


}

leave the first blank and specify the second?

Thanks for your help it worked. but why do u only specify the last one

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.