logo

Crowdly

Browser

Add to Chrome

Який результат виконання наступного фрагмента коду: int rows = 5, cols = 3, coun...

✅ 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;

 

More questions like this

Want instant access to all verified answers on vns.lpnu.ua?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome