sizeof

#include <stdio.h>
#include <stdlib.h>

int main(int argc, char* argv[]) { 

    int (*array[5])[6];
    printf("%d\n", sizeof(array));      // 20
    printf("%d\n", sizeof(*array));     //  4
    printf("%d\n", sizeof(array[1]));      //  4
    printf("%d\n", sizeof(**array));       // 24
    printf("%d\n", sizeof(array[1][1]));   // 24
    printf("%d\n", sizeof(***array));      //  4
    printf("%d\n", sizeof(array[1][1][1]));//  4
    return EXIT_SUCCESS;
}

 

posted @ 2015-05-14 12:36  long#long  阅读(336)  评论(0编辑  收藏  举报