fork(1) download
  1.  
  2.  
  3. #include <stdio.h>
  4. #include<vector>
  5. #include<algorithm>
  6.  
  7.  
  8. using namespace std;
  9.  
  10.  
  11.  
  12. class Ca
  13.  
  14. {
  15.  
  16.  
  17.  
  18. public:
  19.  
  20. Ca() {printf("\nKONST this = %p\n",this);}
  21.  
  22. ~Ca() {printf("\nDEST this = %p\n",this);}
  23.  
  24.  
  25. };
  26.  
  27.  
  28.  
  29. void hgh(Ca v);
  30.  
  31.  
  32.  
  33. int main()
  34.  
  35. {
  36.  
  37.  
  38. hgh(Ca());
  39.  
  40.  
  41.  
  42.  
  43. return 0;
  44. }
  45.  
  46.  
  47.  
  48. void hgh(Ca v)
  49.  
  50. {
  51. printf("\nhgh() = %p\n",&v);
  52.  
  53.  
  54. }
  55.  
Success #stdin #stdout 0s 3456KB
stdin
Standard input is empty
stdout
KONST this = 0xbf833f4f

hgh() = 0xbf833f4f

DEST this = 0xbf833f4f