how can we increse the size of string.
I’ve written this code
How to increase size of string
Try using a vector instead of an array as its size can be inc/dec while size of array is fixed
how can we input an a vector of type char…because .size() will initially give 0
Take input in array then transfer elements to a vector
1 Like
okay, thanks. I did the same and it worked. But isn’t there any another method?