Advertisement
IISergeyII

Untitled

May 19th, 2018
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.49 KB | None | 0 0
  1. #include <iostream>
  2. #include <cmath>
  3. #include <algorithm>
  4. #include <math.h>
  5. #include <vector>
  6. #include <fstream>
  7.  
  8. using namespace std;
  9.  
  10. void myQuickSort(int A[]) {
  11.  
  12. }
  13.  
  14. int main()
  15. {
  16.     int a[5] = {7, 9, 5, 1, 3};
  17.  
  18.     int *p = a;
  19.     // p and &p are equals ??
  20.     cout << *p << endl; // 7
  21.     cout << p << endl;  // 0x69feec
  22.     cout << &p << endl; // 0x69fee8 ??????????
  23.     cout << *(&(p)) << endl; // 0x69feec
  24.     cout << &(*(p))<< endl;  // 0x69feec
  25.  
  26.     return 0;
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement