Should we use character array to solve strings questions or strings class?
Doubt (string vs char a[])
Hi @ivanshajkapoor
In my opinion you should use string as a good thing about the string data structure is that if you know the array data structure,you can easily solve string-based problems because strings are nothing but a character array. So all the techniques you know bysolving array-based coding questions can beused to solve string programming questionsas well. So using string you can use both features of string and char array.