how to convert string to character array?
String to character array
@S15,
Why to convert in the first place, string is a better class than using char arrays, just use strings everywhere, from input till processing and output.
But if you still wanna do it, just declare a char array of enough size and simple iteration along with placing ‘\0’ at end of char array should be enough.
But uf you wanna go stylish, try this.
because i have to use strtok() function and it only takes character array…