使用指针数组,编写一个通用的英文月份名显示函数 void display(int month)
发布网友
发布时间:2022-04-23 05:26
我来回答
共1个回答
热心网友
时间:2023-10-16 08:44
void display(int month)
{
char *mName[]={
"January”,
"February”,
"March”,
"April”,
"May”,
"June”,
"July”,
"August”,
"September”,
"October”,
"November”,
"December"};
printf("%s", mName[month-1]);
}