Message from C, C++ talks

July 2019

— So you want us to do your homework, right now and for free? go away 😂

— Its their assignment

— Allocate each array using a for loop? :/

— Ha ya

— 

For example:

//int arr[n][m];
int **arr = new int*[n];
for (int i = 0; i < m; ++i)
arr[i] = new int[m];

— Wrong

— Int arr = new int[n]; or int **arr = new int*[n]; ?

— Second

— So?

— Whoops it took the asterisks as text formatting haha

— Int*[n] means pointer to an array?

— It means array of pointers

— Yeah, that was error;
already fixed

— Its not homework

— Its different