Initial array:
char array[8][30] = { “A———-“,
“B———-“,
“C———-“,
“D———-“,
“E———-“,
“F———-“,
“G———-“,
“H———-“}
if the input is ‘d’, the array should change to
char array[8][30] = { “A———-“,
“H———-“,
“A———-“,
“B———-“,
“C———-“,
“D———-“,
“E———-“,
“F———-“,
“G———-“}
if ‘d’ is pressed again the array should go in this order GHABCDEF.. and should continue like that. The answer should be based on the code in the picture attached.