Memory Management: new and delete
Let’s say we wish to take the user’s name as input and store it somewhere in C++. Now, the name can be of any size and we don’t exactly know the length of input string apriori. How do you then declare a data structure with variable size?
int size;
st...
cnotes.hashnode.dev4 min read