for(unsigned int l=0; l<size*size; l++) { marks[l] = klas.yel[l]; <--- memcpy? data[l] = 99999; <--- ? }