char *test_str = "This is a test string";

// test_str是指针类型,sizeof(test_str) = 8

char test_str[] = "This is a test string";

// test_str是数组类型,sizeof(test_str) = 22

相关文章:

  • 2021-12-11
  • 2022-12-23
  • 2022-12-23
  • 2021-12-03
  • 2021-07-12
  • 2022-12-23
  • 2021-08-07
  • 2022-12-23
猜你喜欢
  • 2021-07-31
  • 2022-12-23
  • 2021-11-09
  • 2021-08-21
  • 2022-12-23
  • 2022-12-23
  • 2021-10-27
相关资源
相似解决方案