+ 1
string array ->char array
Hello, I would like to know how to convert string a[] = {"b", "c"}; into char d[] = {'b', 'c'}? If we have very long array.
5 Respostas
+ 1
TeaserCode,
Here's one possible way
https://code.sololearn.com/c7U3Y0atZqJi/?ref=app
+ 1
Thanks both of you, it is a basic matter. I haven't known number of col is zero not one.
0
Does anybody knows it?
0
TeaserCode here is a simple way to convert string array a[] to char array d[] as per your requirement. Do take a look at my code
https://code.sololearn.com/cA52DuaLP9yk/?ref=app
0
TeaserCode,
What number of col is zero?