Can arrays be nested in functions | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Can arrays be nested in functions

Nested arrays in functions

22nd Apr 2019, 10:35 PM
Primidac
Primidac - avatar
3 Answers
+ 2
They can be nested as you like it; but if you pass for example a 2-dimensional array as an argument, the 'rows' size must be given at function definition. int f(int x[][5]) {...}
22nd Apr 2019, 11:05 PM
HonFu
HonFu - avatar
+ 1
I don't understand your question, please reframe it, so that you can get your desired answer edited: this is also known as multi dimensional array
22nd Apr 2019, 10:43 PM
✳AsterisK✳
✳AsterisK✳ - avatar
+ 1
Thanks
22nd Apr 2019, 11:06 PM
Primidac
Primidac - avatar