temporadas[i][2]三种等价形式

#include <stdio.h>
int main()
{
    char *temporadas[] = {"primavera", "verano", "otoño", "invierno"};
    for (int i = 0; i < 4; ++i) {
        // printf("%c
", *((*(temporadas + i)) + 2));
        // printf("%c
", (*(temporadas + i))[2]);
        printf("%c
", temporadas[i][2]);
    }
    return 0;
}
原文地址:https://www.cnblogs.com/profesor/p/13196222.html