This is my code and this is my logic
I can not get the array to shift so I think the binary bits are overriding each other. I also get an error message saying that the stack around the variable array1 was corrupted. Any suggestions?
#define SIZE 7
scanf(" %d", &dec);
printf("\n\nThis is the binary number %d\n\n", array1[SIZE]);