✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
What does the following C++ code do?
#include<iostream>
using namespace std;
int main() {
int *ptr = NULL;
ptr = new int;
*ptr = 7;
cout << *ptr;
delete ptr;
return 0;
}