I need to use array in function, but i just get error every time when i run programm.
I tried to make a little render programm, and i was trying to make it using arrays. After many attempts i still cant repair it, can you help me, give some advices like: how can i avoid it, or repair it.
It's not code of programm, it is just example.
#include <iostream>
void func_W(int*arr[])
{
for(int i = 0; i < 8; i++){
for(int j = 0; j < 3; j++){
std::cout << arr[i][j];
arr[i][j] = 1;
std::cout << arr[i][j];
};
};
};
int main()
{
int arr1[8][3];
func_W(arr1);
}