#include <stdio.h>
#include <assert.h>
int main(void)
{
int (*a)[2];
int b[5];
printf("sizeof(int) : %zu\n", sizeof(int)); printf("sizeof(int*) : %zu\n", sizeof(int*));
assert(sizeof(b
) == sizeof(int [5])); assert(sizeof((int*)b
) == sizeof(int *)); assert(sizeof(&b
[0]) == sizeof(int *));
assert(sizeof(a
) == sizeof(int(*)[2])); assert(sizeof(a
[0]) == sizeof(int[2])); assert(sizeof(a
[1]) == sizeof(int[2]));
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxhc3NlcnQuaD4KCmludCBtYWluKHZvaWQpCnsKCiAgICBpbnQgKCphKVsyXTsKICAgIGludCBiWzVdOwoKICAgIHByaW50Zigic2l6ZW9mKGludCkgOiAlenVcbiIsIHNpemVvZihpbnQpKTsgCiAgICBwcmludGYoInNpemVvZihpbnQqKSA6ICV6dVxuIiwgc2l6ZW9mKGludCopKTsKCiAgICBhc3NlcnQoc2l6ZW9mKGIpID09IHNpemVvZihpbnQgWzVdKSk7CiAgICBhc3NlcnQoc2l6ZW9mKChpbnQqKWIpID09IHNpemVvZihpbnQgKikpOwogICAgYXNzZXJ0KHNpemVvZigmYlswXSkgPT0gc2l6ZW9mKGludCAqKSk7CgogICAgYXNzZXJ0KHNpemVvZihhKSA9PSBzaXplb2YoaW50KCopWzJdKSk7CiAgICBhc3NlcnQoc2l6ZW9mKGFbMF0pID09IHNpemVvZihpbnRbMl0pKTsKICAgIGFzc2VydChzaXplb2YoYVsxXSkgPT0gc2l6ZW9mKGludFsyXSkpOwoKICAgIHJldHVybiAwOwp9Cg==