So for some reason I'm getting messed up values for my c program
I have
int key1[10][3];
int out[4] = {1,0,0,1};
for(i =0;i<10;i++)
{
for(j=0;j<3;j++)
{
key1[i][j] = out[j];
printf("%d",key1[i][j]);
//at this point it will print 100
}
}
printf("%d",key1[0][0]);
printf("%d",key1[0][1]);
printf("%d",key1[0][2]);
// output will be 000
This is driving me nuts am i not declaring my arrays properly in memory or something
*I apologize you guys are right i should have just posted code the solution was some error that was nothing relevant to this please forgive me *