#include<iostream>
using namespace std;
int main()
{
    char *temp[100]={"你好","我好","大家好","good","better","very good"};    
    for(int i=0;i<8;i++)
        cout<<temp[i]<<endl;
}

运行结果:

 

小编测试了一下char *temp[ ]的长度要大于等于8,即至少为char *temp[8],如果为char *temp[7],运行就会自动关闭程序,出现下图情况,这里很疑惑

希望大家能够留言一起讨论一下哈!

相关文章:

  • 2021-10-17
  • 2022-01-31
  • 2022-12-23
  • 2021-11-17
  • 2022-12-23
  • 2021-08-29
  • 2021-12-11
  • 2022-02-05
猜你喜欢
  • 2022-12-23
  • 2022-02-10
  • 2021-10-27
  • 2021-11-11
  • 2021-11-04
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案