I have a data type defined by me, and I want to create a matrix of that data type, but I'm not able to use it.
I have typedef char data[10];
data **matrix;
matrix=(data**)malloc(n*sizeof(data*));
for (i=0;i<x;++i)
matrix[i]=(data*)malloc(m*sizeof(data));
matrix[i][j]="example";
But in the last line i get an error saying incompatible types, even if I use data of the same type (in this case from a dynamic vector). Is there an error creating the matrix or using it?