hi. got a question on arrays of strings once again...

the declaration:

char *str_array[4]

means undefined length or individual strings, but 4 strings in total right?

if this is the case, how do you declare the opposite, ie fixed (staticaly allocated) mem for the individual strings (same length all of them), but dynamic mumber of strings?


also another thing. suppose that you wanna make console menu and you got say submenu1 and submenu2 called from the main menu.

is there a way to change from submenu1 to submenu2 without calling say submenu2 from within submenu1 and the opposite? one way would be to go back to the main menu and from there to another sub, but is there any way not to go through the parent menu and without calling sub2 from sub1 etc?

both sub1 and sub2 contain link to eachother but calling sub2 from sub1 and then sub1 from within sub2 etc doesnt look right...


thanx in advance for help.

null