What happens when you attempt to compile and run the following code?
#include
int main()
{ int *a= new int; *a=100; cout << *a; delete a; }
A. It prints: 1
B. It prints: 100
C. It prints: 0
D. It prints: 10
What happens when you attempt to compile and run the following code?
#include
int main()
{ int *a= new int; *a=100; cout << *a; delete a; }
A. It prints: 1
B. It prints: 100
C. It prints: 0
D. It prints: 10