unsigned char j[4][4];
And I want pass this element to the constructor of a class, I have a attribute in the class with the same type as the matrix
class x{
private:
unsigned char x[4][4];
public:
x(unsigned char j[4][4]);
};
I put values in my matrix j and in the constructor I want equalize j and x like this
x(unsigned char j[4][4]){
x = j;
}
but and error appear in the code
incompatible types in assignment of ‘unsigned char (*)[4]’ to ‘unsigned char [4][4]’
why?