Link to home
Start Free TrialLog in
Avatar of tseyeh
tseyeh

asked on

how to decleare the array of string using c?

I want to ask how to declare the array of string?

is it looks like this way?

char * temp[10][10];

aftter decleration, how can i initialize the array? for example using mon,tues,wed...
Avatar of ozo
ozo
Flag of United States of America image

char *temp[]={"mon","tues","wed"};
Avatar of tseyeh
tseyeh

ASKER

thanks for u answer, but
how can i access it? it it looks like

char * mon;
mon=temp[0];//which mon="mon";


ASKER CERTIFIED SOLUTION
Avatar of Shev
Shev

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial