4

Assignment 9 - khu.ac.krhaptics.khu.ac.kr/pb/assignment9.pdf[Random Map] 243 13ø 115 169 34 6 253 158 154 112 51 155 82 1 ø9 68 2" 13? 29 138 15ø 19? 38 74 115 26 128 66 23 245

  • Upload
    dinhnga

  • View
    213

  • Download
    0

Embed Size (px)

Citation preview

Assignment 9

1 2 4 9 6 1

3 7 5

8 7 6 1 3 5

3 7 9

Assignment 9

Assignment 9

4

int i = 2; int j = 4; int *pi = &i; int *pj = &j; cout << *&j << endl; cout << *&*&j << endl; cout << *&pi << endl; cout << **&pj << endl; cout << &**&pi << endl; cout << &i+8 << endl;

int a = 5; int b = 7; int *p = &a; int *q = &b; cout << ++a << endl; cout << ++(*p) << endl; cout << --(*q) << endl; cout << --b << endl;