I have the following array structure :
left , right , top
top , left , right
top , top , left
I want to declare it in C , I have done it like this :
char *movements[][] = {{"left","right","top"},
{"top","left","right"},
{"top","top","top"}
}
But I am getting this error : array has incomplete element type.
What is the right way of achieving this(declaring and accessing (printing)).Do I have to take three dimensional array?