?
Solved

how to decleare the array of string using c?

Posted on 2000-01-05
3
Medium Priority
?
222 Views
Last Modified: 2010-04-15
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...
0
Comment
Question by:tseyeh
3 Comments
 
LVL 85

Expert Comment

by:ozo
ID: 2327746
char *temp[]={"mon","tues","wed"};
0
 
LVL 1

Author Comment

by:tseyeh
ID: 2327900
thanks for u answer, but
how can i access it? it it looks like

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


0
 

Accepted Solution

by:
Shev earned 100 total points
ID: 2327948
Yep
0

Featured Post

Choose an Exciting Career in Cybersecurity

Help prevent cyber-threats and provide solutions to safeguard our global digital economy. Earn your MS in Cybersecurity. WGU’s MSCSIA degree program was designed in collaboration with national intelligence organizations and IT industry leaders.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This tutorial is posted by Aaron Wojnowski, administrator at SDKExpert.net.  To view more iPhone tutorials, visit www.sdkexpert.net. This is a very simple tutorial on finding the user's current location easily. In this tutorial, you will learn ho…
Examines three attack vectors, specifically, the different types of malware used in malicious attacks, web application attacks, and finally, network based attacks.  Concludes by examining the means of securing and protecting critical systems and inf…
The goal of this video is to provide viewers with basic examples to understand and use pointers in the C programming language.
The goal of this video is to provide viewers with basic examples to understand and use structures in the C programming language.
Suggested Courses

593 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question