fork download
  1. #include <stdio.h>
  2. void modify(int** p){
  3. *p = NULL;
  4. }
  5.  
  6. int main(void) {
  7. int num = 10;
  8. int* p = &num;
  9. modify(&p);
  10.  
  11. printf("p is %sNull Pointer\n", (p?"not ":""));
  12. return 0;
  13. }
  14.  
Success #stdin #stdout 0.01s 5284KB
stdin
Standard input is empty
stdout
p is Null Pointer