Computer Hardware Design - Old Questions

Question Answer Details

1. Write MIPS assembly code for the following function where n corresponds to the argument

register $a0? (10)

int fact (int n)

{

if (n < 1)

return (1);

else

return (n * fact(n – 1));

}

5 marks
Asked in Model Question

Answer

AI Generated Answer

AI is thinking...