difference between free and delete in c++ code example
Example: free or delete in c++
delete --> If you used the 'new' operator
free --> If you used 'malloc'
delete --> If you used the 'new' operator
free --> If you used 'malloc'