字符串数组初始化

1.char *t="\0";

2.char t[number]="";

3.char t[number]={'\0'};

注意不能char *t='\0';这是让t的地址为0,也就是null。

posted @ 2020-02-10 11:24  陈十  阅读(513)  评论(0编辑  收藏  举报