logo

Crowdly

Код програми, поданий нижче ,буде скомпільовано і виконано без помилок: #includ...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

Код програми, поданий нижче ,буде скомпільовано і виконано без помилок:

#include <iostream>

using namespace std;

void main()

{

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;

}

 

100%
0%
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