Question: Convert the following C program into MIPS assembly language int fact (int n) { if (n < 1) return 1; else return (n * fact
Convert the following C program into MIPS assembly language
int fact (int n) {
if (n < 1) return 1;
else
return
(n * fact (n – 1));
}
Step by Step Solution
3.42 Rating (177 Votes )
There are 3 Steps involved in it
To convert the given C program which calculates the factorial of a number using recursion into MIPS assembly language we need to understand both the l... View full answer
Get step-by-step solutions from verified subject matter experts
