sofiiiaaapiust

Untitled

Mar 20th, 2023 (edited)
337
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. int main()
  4. {
  5. using std::cout;
  6. using std::endl;
  7.  
  8. int* ptr = new int(300);
  9.  
  10. cout << "Address of the allocated memory: " << ptr << endl;
  11.  
  12. cout << "The value in the allocated memory: " << *ptr << endl;
  13.  
  14. return 0;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment