Adding two arrays into a third

I am writing a program with several two dimensional arrays. This is new to me and I am having trouble adding my first two arrays into a third. My professor said that this will take a double for loop and gave me this hint: loop on r and c: C[r][c] = A[r][c] + B[r][c];

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!