Hello im confused with pointers, how do i create a shallow copy of a string array in c ?
char *currMenuArray; // ???
char *MainMenuArray[] =
{
"MAIN MENU",
"One",
"Two",
"Options",
"Quit"
};
char *OptionsMenuArray[] =
{
"OPTION MENU",
"Option1",
"Option2",
"Option3",
"Back"
};
void main()
{
currMenuArray = MainMenuArray; // ???
DisplayMenu();
}