Answers for "matrix dynamic memory c++"

C++
0

matrix dynamic memory c++

int ** Matrix (const unsigned n, const unsigned m) {
	int ** tmp = new int * [n];
	for(unsigned i = 0; i < n; i++){
		tmp[i] = new int [m];
    }
	return tmp;
}
Posted by: Guest on January-10-2022

Browse Popular Code Answers by Language