(a) Write the functionrowSum() that receives a(double type) two-dimensional array using vectors and returns a vector consisting of the sum of elements in each row of the two-dimensional structure. The value of the returned vector at index zero is the sum of the elements in row zero of the two-dimensional structures. At index one of the returned vector is the sum of the elements in row one and so on.
(b) Write a main function to testrowSum() function. Create a two-dimensional vector of at least size (5 x 5). Display the array and the content of the returned vector.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here