6 questions
In C++, there are many ways to dynamically allocate, right?Then when should I use malloc and when should I use new?malloc If you finished freeIf new is done, deleteI know I shouldn't mix the two.
As far as I know, alloca() dynamically allocates memory in stack, not heap, and releases memory on its own when it returns from routine Then shouldn't it be recommended because it's safer because it d...
Why is it that I have to do the reverse free for the malloc order?
The method of using both is similar, and the size of the return is the same, but why is there a separate one?I can't tell the difference between the two.
Hello, I am a student who is learning programming in C language these days.One of the things you have to do is open the data.txt file and save it as an array and solve the problem using those arrays, ...
Hello, I'm a reserve who just got discharged from the military while preparing to return to school for the second semester of the second year of computer engineering.I was curious while looking at the...
© 2024 OneMinuteCode. All rights reserved.