fork(1) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main(void) {
  5. int *t = NULL;
  6. int &k = *t;
  7.  
  8. cout << "link address " << &k << endl;
  9. cout << "link is NULL " << (&k == NULL) << endl;
  10.  
  11. return 0;
  12. }
  13.  
Success #stdin #stdout 0s 3468KB
stdin
Standard input is empty
stdout
link address 0
link is NULL 1