#include <stdio.h>
int main() {
char map [3][6] = {
{'a','.','.','.','.','.'},
{'.','.','.','.','.','.'},
{'.','.','.','.','.','.'}
};//Create a new game map
char* newmap = map;
printf("%c",newmap); //Print first element
return 0;
}
The code I have does not work. I am trying to make a pointer to map[3][6] and then be able to print the array from the pointer.