0
What's the function of the 'new int' expression?
6 Answers
+ 2
Not sure what code you are talking about, but the new keyword is used to allocate memory dynamically (on the heap, at runtime). Use the delete keyword to free that memory when it's no longer needed.
0
Amazing Mr Zen. It really allocates memory on a heap. Thank you
0
Allocates memory to heap
0
allocate memory on heap
0
Allocates memory to heap
0
Type in the missing data types of the variables a, b, c, and d, where a is an integer, b is a double floating-point number, c is a character, and d is a string.