Adder X79541


Statement
 

pdf   zip   main.cc

html

Implement the function

void add(int* in1, int* in2, int* out, int size);

that receives three arrays of the given size, adds in1 and in2, and stores the result in out.

For example, for these input arguments

in1 = [1, 2, 3, 4, 5] in2 = [6, 7, -3, 0, 1] size = 5

your function should store the following in out:

out = [7, 9, 0, 4, 6]

Observation You only need to submit the required procedure; your main program will be ignored.

Information
Author
Language
English
Official solutions
C++
User solutions
C++