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

18th May 2018, 12:28 AM
Shah Zad
Shah Zad - avatar
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!
15th Jul 2018, 12:11 PM
Danijel Ivanović
Danijel Ivanović - avatar
+ 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.
15th Jul 2018, 12:38 PM
Danijel Ivanović
Danijel Ivanović - avatar
+ 2
what language is this in?
14th Jul 2018, 2:43 PM
StealthyTaco
StealthyTaco - avatar
15th Jul 2018, 1:14 PM
StealthyTaco
StealthyTaco - avatar
+ 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
16th Jul 2018, 12:49 PM
StealthyTaco
StealthyTaco - avatar
+ 1
c++
14th Jul 2018, 2:56 PM
Shah Zad
Shah Zad - avatar
+ 1
Danijel Ivanović i could not figure this one out. do you have any additional insight on passing multidimensional arrays as arguments?
15th Jul 2018, 10:37 AM
StealthyTaco
StealthyTaco - avatar