Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Example program
- #include <iostream>
- #include <string>
- using namespace std;
- int main()
- {
- int* ptr = new int[10];
- for(int i=0;i<10;i++){
- ptr[i]=10-i;
- cout << (&*(&ptr[i])) << endl;
- }
- int* p = &ptr[0];
- int pr = *p;
- cout << pr << endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement