Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- cout << "Problem 3" << endl << endl;
- int size = 8;
- int m = 0x003BF7B4;
- int *m = 7;
- int p = 0x003BF79C;
- int *p = 0x003BF7B4;
- cout << "size = " << sizeof(double) << endl;
- double m[] = { 7, 5, 9, 6 };
- double* p[] = { m, m + 1, m + 2, m + 3 };
- double** w = p + 2;
- cout << "m = " << m << endl;
- cout << "*m = " << *m << endl;
- cout << "p = " << p << endl;
- cout << "*p = " << *p << endl << endl;
- -ww;
- cout << "w = " << w << endl;
- cout << "*w = " << *w << endl;
- cout << "**w = " << **w << endl;
- cout << "*w-m = " << *w-m << endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement