Computer Science Archive: Questions from April 20, 2022
-
1 answer
-
Ejercicio 3. Resolver el siguiente condigo en MARS - MIPS. Incluir imprimir resultado
Ejercicio-3 Dado el arreglo B= [5, -6, -8, 12, 13, -6, 9, -2, 3, 4] definido en memoria. Hallar lo siguiente: a) La suma de todos los elementos b) La cantidad de elementos que son positivos c) La cant1 answer -
0 answers
-
a. y = CalcSum(); b. y = CalcSum(4, 5); c. y = CalcSum(4 + 5); d. CalcSum(y, 4, 5);
Which XXX is valid for the following code? int CalcSum(int a, int b) { return a + b; } int main() { int y; XXX return 0; }3 answers -
1 answer