Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- using namespace std;
- int main() {
- long int value1 = 200000;
- long int value2 = 0;
- //a)
- long int *iPtr;
- //b)
- iPtr = &value1;
- //c)
- cout << *iPtr << endl;
- //d)
- value2 = *iPtr;
- //cout << value2 << endl;
- //e)
- cout << value2 <<" "<<*iPtr<< endl;
- //f)
- cout << &value1 << endl;
- //g)
- cout << iPtr <<" "<<*iPtr<< endl;
- system("pause");
- return EXIT_SUCCESS;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement