SHARE
TWEET

Untitled

a guest Jan 21st, 2020 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6.     cout << "Problem 3" << endl << endl;
  7.  
  8.     int size = 8;
  9.     int m = 0x003BF7B4;
  10.     int *m = 7;
  11.     int p = 0x003BF79C;
  12.     int *p = 0x003BF7B4;
  13.    
  14.     cout << "size = " << sizeof(double) << endl;
  15.     double m[] = { 7, 5, 9, 6 };
  16.     double* p[] = { m,  m + 1, m + 2, m + 3 };
  17.     double** w = p + 2;
  18.  
  19.     cout << "m = " << m << endl;
  20.     cout << "*m = " << *m << endl;
  21.     cout << "p = " << p << endl;
  22.     cout << "*p = " << *p << endl << endl;
  23.  
  24.     -ww;
  25.     cout << "w = " << w << endl;
  26.     cout << "*w = " << *w << endl;
  27.     cout << "**w = " << **w << endl;
  28.     cout << "*w-m = " << *w-m << endl;
  29.  
  30. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top