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

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

Jump to Post

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 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.