char *a[] = {"january","febuary","march","april","may","june","july","august","september","decenber"};如何初始化
时间: 2023-12-31 18:23:57 浏览: 28
在C语言中,可以使用以下方式初始化一个字符指针数组:
```c
char *a[] = {"january","febuary","march","april","may","june","july","august","september","decenber"};
```
这样就创建了一个名为`a`的字符指针数组,并将字符串"january"、"febuary"、"march"等依次赋值给数组的各个元素。
阅读全文