0
A function should receive two arguments one is 2D array and second one is number of row which sum I want to calculate.Plz help
guidance required
7 odpowiedzi
+ 16
Robert Atkins
I really do not know, I'm not working in c++ I'm just based on Java.
Can you help an example of Passing Two Dimensional Arrays to Methods in Java!
Sorry!
+ 16
Shah Zad
It would be nice if you set up a your solution to the problem, since the SL community really intends to help but intends to help others who might have a similar problem and find this post useful.
+ 2
what language is this in?
+ 2
Danijel Ivanović 2d arrays in java
https://code.sololearn.com/cUYK81w2stFU/?ref=app
+ 2
Shah Zad I've updated the code and have gotten it working. the thing is the bounds of the array have to be defined within the parameter definition, atleast those exceeding the first dimension. now when you enter the row you want summed it will sum it up and display the numbers used.
https://code.sololearn.com/c09IlTJBXNgT/?ref=app
+ 1
c++
+ 1
Danijel Ivanović i could not figure this one out. do you have any additional insight on passing multidimensional arrays as arguments?