vbx_wx -6 Junior Poster
Recommended Answers
Jump to Post> deprecated conversion from string constant to ‘char*’
The string literals are constants, so using
const
is in order, like soconst char * months[] = {"january","february","march","april"};
Jump to Postpointer to array of character strings... If by character string you mean const char*, and if you MEAN you want to declare a pointer to array of pointers to const char(which I doubt), then it will be like this
typedef const char * str_type; typedef str_type arr_type[100]; …
All 6 Replies
Fbody 682 Posting Maven Featured Poster
vbx_wx -6 Junior Poster
Fbody 682 Posting Maven Featured Poster
vbx_wx -6 Junior Poster
mitrmkar 1,056 Posting Virtuoso
LordNemrod 10 Light Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.