数组与指针互换

int main() {

    char *name[AMAX] = {"Illegal month", "Jan", "Feb", "Mar"};

    printf("%c\n", **name);

    printf("%c\n", (*name)[0]);

}


结果一致:I

 

 

 

展开阅读全文