#include <stdio.h>      /* printf */
#include <assert.h>     /* assert */

void print_number(int* myInt) {
  assert (myInt!=NULL);
  printf ("%d\n",*myInt);
}

int main ()
{
  int a=10;
  int * b = NULL;
  int * c = NULL;

  b=&a;

  print_number (b);
  print_number (c);

  return 0;
}

 

相关文章:

  • 2022-12-23
  • 2022-02-21
  • 2022-01-08
  • 2021-12-13
  • 2021-12-22
  • 2021-12-13
猜你喜欢
  • 2021-12-13
  • 2021-07-16
  • 2022-12-23
  • 2021-12-13
  • 2021-12-13
相关资源
相似解决方案