Informatica
What is the output of the following code?
void Op1 (int& y){
y *= 3;
cout << y << endl;
}
int main()
{
int x = 4;
Op1(x);
cout << x << endl;
return 0;
}
12, 12
12, 4
3, 4
4, 12
Il punteggio di un esercizio è determinato
dalla difficoltà: da 1 (più facile) a 5 (più
difficile). Vuoi saperne di più? Consulta il
Centro assistenza
Informatica
What is the value of the temp variable at the end of the following code where k is the number of rows of mat?
temp = 0;
for (int i=0; i<k; i++) {
temp += mat[i][0];
}
The sum of the first row in mat.
The sum of the first column in mat.
The sum of all elements in mat.
The determinant of mat.
Il punteggio di un esercizio è determinato
dalla difficoltà: da 1 (più facile) a 5 (più
difficile). Vuoi saperne di più? Consulta il
Centro assistenza