1 //输出10 和 9 
 2 #include <iostream>
 3 #include <cstring>
 4 using namespace std;
 5 
 6 int main()
 7 {
 8      char p[] = "12中国abc";
 9      int ans = sizeof(p);
10      int len = strlen(p);
11      cout<<ans<<"  "<<len<<endl;
12      while(1);
13      return 0;
14 }
15  

 

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-03
  • 2022-12-23
  • 2021-10-14
  • 2022-12-23
  • 2021-07-17
猜你喜欢
  • 2021-08-01
  • 2022-12-23
  • 2021-11-13
  • 2021-10-17
  • 2021-09-01
  • 2022-12-23
相关资源
相似解决方案