✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Який результат виконання наступного фрагмента коду:
int rows = 5, cols = 3, count = 0;
int ** mas = new int*[rows];
for (int i = 0; i < rows; i++)
{
mas[i] = new int[cols];
for (int j = 0; j < cols; j++, count++)
mas[i][j] = count;
}
for (int i = 0; i < rows; i++)
cout << *mas[i] << "\t";
for (int i = 0; i < rows; i++)
delete[]mas[i];
delete[]mas;