In the line
char *output=new char[strlen(input)+1]
what does the line mean?when is the new keyword used? And why did we initialise this ‘output’ variable
What is Dynamic array
hello @abhinavgoyal912
please refer this article.
output array is a char array and is used to store the desired string .
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.