0

What will be the declaration of a function which has a 2d array as a parameter...?

28th Jun 2020, 1:21 PM
Sandeep Mandal
Sandeep Mandal - avatar
4 Antworten
+ 1
It is mostly the same..... void func(int ** param) void func(int param[2][2]) is for 2d
28th Jun 2020, 1:48 PM
Alexander Thiem
Alexander Thiem - avatar
+ 1
Example:- int funct(int myarr[][10]{ blah blah blah... }
28th Jun 2020, 1:47 PM
rodwynnejones
rodwynnejones - avatar
0
This one is for 1D arrays...!
28th Jun 2020, 1:44 PM
Sandeep Mandal
Sandeep Mandal - avatar