I have this assignment using c++ please help me in writing a code.
Suppose you have a main ( ) with three local arrays, all the same size and type (say float). The first two are already initialized to values. Write a function called add arrays ( ) that accepts the addresses of the three arrays as arguments; add the contents of the first two arrays together, element by element; and places the results in the third arrays before returning. A forth argument to this function can carry the size the size of the array. Use pointer notation through out; the only place you need brackets is in defining the arrays.
Suppose you have a main ( ) with three local arrays, all the same size and type (say float). The first two are already initialized to values. Write a function called add arrays ( ) that accepts the addresses of the three arrays as arguments; add the contents of the first two arrays together, element by element; and places the results in the third arrays before returning. A forth argument to this function can carry the size the size of the array. Use pointer notation through out; the only place you need brackets is in defining the arrays.
Comment