Question: Subtract Two Arrays: Write a MIPS assembly language program that subtracts two arrays with ten elements (element - by - element subtraction) and save them
Subtract
Two Arrays:
Write a MIPS assembly language program that subtracts two arrays with ten elements (element - by - element subtraction) and save them in an array.
Print the Result Array. Code in java:
int[] A = {10, 5, 6, 15, 17, 19, 25, 30, 12, 56 };
int[] B = {4, 15, 16, 5, 7, 9, 15, 10, 22, 6 };
int[] C = new int[10];
for(int i =0;i C[i]=A[i]-B[i]; System.out.println("Result is "+ Arrays.toString(C));
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
