Assalam U Alaikum Guys!

can somebody help me how to convert a string to Char array? like if m having a string=("hello"); and i want to convert it to arr[5]={'h','e','l','l','o'};

is that possible.. or can somebody help me?

Recommended Answers

All 2 Replies

Isn't declaring a string in c already a null terminated character array?

Yes, a 'string' already is a character array -- by definition.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.