printf("%c\n",*str);//输出首字符

printf("%s\n",str);//输出整串字符

printf("%p\n",str);//输出字符串首字符地址

printf("%p\n",&str);//输出指针str的地址

相关文章:

  • 2022-12-23
  • 2021-10-20
  • 2022-12-23
  • 2022-12-23
  • 2022-01-11
  • 2021-08-19
  • 2021-07-04
  • 2022-12-23
猜你喜欢
  • 2021-06-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-28
  • 2021-09-07
  • 2021-09-15
  • 2022-12-23
相关资源
相似解决方案