0

Can a function return and take as an argument an N dimensional array where N is unknown?

25th Jun 2016, 11:54 PM
Garme Kain
Garme Kain - avatar
2 odpowiedzi
0
yes...but where you give array size through user input..then it is possible..otherwise if you leave blank the array size and passes that in to the function compiler gives you error like array storage size does not known...
26th Jun 2016, 2:32 AM
gandhiyash
0
I'm not talking about array length. I'm talking about the dimensions of the array, a function that can take an int* or an int*** as a parameter without overloading the function.
26th Jun 2016, 5:51 PM
Garme Kain
Garme Kain - avatar