int main() {
  int a[10][20];
  int *b[10];
  int i, row;
  char aname[][15] = {"Illegal month", "Jan", "Feb", "Mar"};
  char *pname[] = {"Illegal month", "Jan", "Feb", "Mar"};
  printf("size of a=%d, b=%d\n", sizeof(a), sizeof(b));
  printf("size of aname=%d, pname=%d\n", sizeof(aname), sizeof(pname));
  row = sizeof(aname) / sizeof(aname[0]);
  for (i = 0; i < row; i++)
    printf("%d(%X)%X, ", sizeof(aname[i]), &aname[i], &aname[i][0]);
  printf("\n");
  row = sizeof(pname) / sizeof(pname[0]);
  for (i = 0; i < row; i++)
    printf("%d(%X)%X, ", sizeof(pname[i]), &pname[i], &pname[i][0]);
  printf("\n");
  printf("\nPress any key to end...");
  getchar();
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x3f0,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x3d0(%rbp),%rdi
lea    0xeb0(%rip),%rsi
mov    $0x3c,%edx
call   1050 <memcpy@plt>
mov    0x2c9f(%rip),%rax
mov    %rax,-0x3f0(%rbp)
mov    0x2c99(%rip),%rax
mov    %rax,-0x3e8(%rbp)
mov    0x2c93(%rip),%rax
mov    %rax,-0x3e0(%rbp)
mov    0x2c8d(%rip),%rax
mov    %rax,-0x3d8(%rbp)
lea    0xebd(%rip),%rdi
mov    $0x320,%esi
mov    $0x50,%edx
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeb9(%rip),%rdi
mov    $0x3c,%esi
mov    $0x20,%edx
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x4,-0x388(%rbp)
movl   $0x0,-0x384(%rbp)
mov    -0x384(%rbp),%eax
cmp    -0x388(%rbp),%eax
jge    1239 <main+0x109>
movslq -0x384(%rbp),%rax
lea    -0x3d0(%rbp),%rdx
imul   $0xf,%rax,%rax
add    %rax,%rdx
movslq -0x384(%rbp),%rax
lea    -0x3d0(%rbp),%rcx
imul   $0xf,%rax,%rax
add    %rax,%rcx
lea    0xe6d(%rip),%rdi
mov    $0xf,%esi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x384(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x384(%rbp)
jmp    11d6 <main+0xa6>
lea    0xe28(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x4,-0x388(%rbp)
movl   $0x0,-0x384(%rbp)
mov    -0x384(%rbp),%eax
cmp    -0x388(%rbp),%eax
jge    12b8 <main+0x188>
movslq -0x384(%rbp),%rax
lea    -0x3f0(%rbp),%rdx
shl    $0x3,%rax
add    %rax,%rdx
movslq -0x384(%rbp),%rax
mov    -0x3f0(%rbp,%rax,8),%rcx
ff
lea    0xdee(%rip),%rdi
mov    $0x8,%esi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x384(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x384(%rbp)
jmp    125b <main+0x12b>
lea    0xda9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xdc4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x0,%al
call   1040 <getchar@plt>
xor    %eax,%eax
add    $0x3f0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
sub    $0x68,%rsp
movups 0xeee(%rip),%xmm0
movups %xmm0,0x4c(%rsp)
movaps 0xed6(%rip),%xmm0
movaps %xmm0,0x40(%rsp)
movaps 0xeba(%rip),%xmm0
movaps %xmm0,0x30(%rsp)
movaps 0xe9e(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
movaps 0x2ca2(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
movaps 0x2c86(%rip),%xmm0
movaps %xmm0,(%rsp)
lea    0x10(%rsp),%r14
lea    0xecc(%rip),%rdi
mov    $0x320,%esi
mov    $0x50,%edx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xec8(%rip),%rdi
mov    $0x3c,%esi
mov    $0x20,%edx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xecc(%rip),%rbx
lea    0x20(%rsp),%rcx
mov    $0xf,%esi
mov    %rbx,%rdi
mov    %rcx,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x2f(%rsp),%rcx
mov    $0xf,%esi
mov    %rbx,%rdi
mov    %rcx,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x3e(%rsp),%rcx
mov    $0xf,%esi
mov    %rbx,%rdi
mov    %rcx,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x4d(%rsp),%rcx
mov    $0xf,%esi
mov    %rbx,%rdi
mov    %rcx,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xe15(%rip),%rcx
mov    %rsp,%rdx
mov    $0x8,%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x8(%rsp),%rdx
mov    0x8(%rsp),%rcx
mov    $0x8,%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x10(%rsp),%rcx
mov    $0x8,%esi
mov    %rbx,%rdi
mov    %r14,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x18(%rsp),%rdx
mov    0x18(%rsp),%rcx
mov    $0x8,%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xdfe(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
call   1050 <getchar@plt>
xor    %eax,%eax
add    $0x68,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@__const.main.aname = [4 x [15 x i8]] [[15 x i8] c"Illegal month\00\00", [15 x i8] c"Jan\00\00\00\00\00\00\00\00\00\00\00\00", [15 x i8] c"Feb\00\00\00\00\00\00\00\00\00\00\00\00", [15 x i8] c"Mar\00\00\00\00\00\00\00\00\00\00\00\00"]
@.str = [14 x i8] c"Illegal month\00"
@.str.1 = [4 x i8] c"Jan\00"
@.str.2 = [4 x i8] c"Feb\00"
@.str.3 = [4 x i8] c"Mar\00"
@__const.main.pname = [4 x i8*] [i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i32 0, i32 0)]
@.str.4 = [20 x i8] c"size of a=%d, b=%d\0A\00"
@.str.5 = [28 x i8] c"size of aname=%d, pname=%d\0A\00"
@.str.6 = [11 x i8] c"%d(%X)%X, \00"
@.str.7 = [2 x i8] c"\0A\00"
@.str.8 = [25 x i8] c"\0APress any key to end...\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [10 x [20 x i32]]
%3 = alloca [10 x i32*]
%4 = alloca i32
%5 = alloca i32
%6 = alloca [4 x [15 x i8]]
%7 = alloca [4 x i8*]
store i32 0, i32* %1
%8 = bitcast [4 x [15 x i8]]* %6 to i8*
%9 = bitcast [4 x i8*]* %7 to i8*
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.4, i64 0, i64 0), i64 800, i64 80)
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.5, i64 0, i64 0), i64 60, i64 32)
store i32 4, i32* %5
store i32 0, i32* %4
br label %12
12: ; preds = %25, %0
%13 = load i32, i32* %4
%14 = load i32, i32* %5
%15 = icmp slt i32 %13, %14
br i1 %15, label %16, label %28
16: ; preds = %12
%17 = load i32, i32* %4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds [4 x [15 x i8]], [4 x [15 x i8]]* %6, i64 0, i64 %18
%20 = load i32, i32* %4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds [4 x [15 x i8]], [4 x [15 x i8]]* %6, i64 0, i64 %21
%23 = getelementptr inbounds [15 x i8], [15 x i8]* %22, i64 0, i64 0
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0), i64 15, [15 x i8]* %19, i8* %23)
br label %25
25: ; preds = %16
%26 = load i32, i32* %4
%27 = add nsw i32 %26, 1
store i32 %27, i32* %4
br label %12
28: ; preds = %12
%29 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
store i32 4, i32* %5
store i32 0, i32* %4
br label %30
30: ; preds = %44, %28
%31 = load i32, i32* %4
%32 = load i32, i32* %5
%33 = icmp slt i32 %31, %32
br i1 %33, label %34, label %47
34: ; preds = %30
%35 = load i32, i32* %4
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds [4 x i8*], [4 x i8*]* %7, i64 0, i64 %36
%38 = load i32, i32* %4
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds [4 x i8*], [4 x i8*]* %7, i64 0, i64 %39
%41 = load i8*, i8** %40
%42 = getelementptr inbounds i8, i8* %41, i64 0
%43 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0), i64 8, i8** %37, i8* %42)
br label %44
44: ; preds = %34
%45 = load i32, i32* %4
%46 = add nsw i32 %45, 1
store i32 %46, i32* %4
br label %30
47: ; preds = %30
%48 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
%49 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.8, i64 0, i64 0))
%50 = call i32 (...) @getchar()
ret i32 0
}

LLVM IR (-O2):
@__const.main.aname = [4 x [15 x i8]] [[15 x i8] c"Illegal month\00\00", [15 x i8] c"Jan\00\00\00\00\00\00\00\00\00\00\00\00", [15 x i8] c"Feb\00\00\00\00\00\00\00\00\00\00\00\00", [15 x i8] c"Mar\00\00\00\00\00\00\00\00\00\00\00\00"]
@.str = [14 x i8] c"Illegal month\00"
@.str.1 = [4 x i8] c"Jan\00"
@.str.2 = [4 x i8] c"Feb\00"
@.str.3 = [4 x i8] c"Mar\00"
@__const.main.pname = [4 x i8*] [i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i32 0, i32 0)]
@.str.4 = [20 x i8] c"size of a=%d, b=%d\0A\00"
@.str.5 = [28 x i8] c"size of aname=%d, pname=%d\0A\00"
@.str.6 = [11 x i8] c"%d(%X)%X, \00"
@.str.8 = [25 x i8] c"\0APress any key to end...\00"
define i32 @main() {
%1 = alloca [4 x [15 x i8]]
%2 = alloca [4 x i8*]
%3 = getelementptr inbounds [4 x [15 x i8]], [4 x [15 x i8]]* %1, i64 0, i64 0, i64 0
%4 = bitcast [4 x i8*]* %2 to i8*
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.4, i64 0, i64 0), i64 800, i64 80)
%6 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.5, i64 0, i64 0), i64 60, i64 32)
%7 = getelementptr inbounds [4 x [15 x i8]], [4 x [15 x i8]]* %1, i64 0, i64 0
%8 = getelementptr inbounds [4 x [15 x i8]], [4 x [15 x i8]]* %1, i64 0, i64 0, i64 0
%9 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0), i64 15, [15 x i8]* %7, i8* %8)
%10 = getelementptr inbounds [4 x [15 x i8]], [4 x [15 x i8]]* %1, i64 0, i64 1
%11 = getelementptr inbounds [15 x i8], [15 x i8]* %10, i64 0, i64 0
%12 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0), i64 15, [15 x i8]* %10, i8* %11)
%13 = getelementptr inbounds [4 x [15 x i8]], [4 x [15 x i8]]* %1, i64 0, i64 2
%14 = getelementptr inbounds [15 x i8], [15 x i8]* %13, i64 0, i64 0
%15 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0), i64 15, [15 x i8]* %13, i8* %14)
%16 = getelementptr inbounds [4 x [15 x i8]], [4 x [15 x i8]]* %1, i64 0, i64 3
%17 = getelementptr inbounds [15 x i8], [15 x i8]* %16, i64 0, i64 0
%18 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0), i64 15, [15 x i8]* %16, i8* %17)
%19 = call i32 @putchar(i32 10)
%20 = getelementptr inbounds [4 x i8*], [4 x i8*]* %2, i64 0, i64 0
%21 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0), i64 8, i8** %20, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0))
%22 = getelementptr inbounds [4 x i8*], [4 x i8*]* %2, i64 0, i64 1
%23 = load i8*, i8** %22
%24 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0), i64 8, i8** %22, i8* %23)
%25 = getelementptr inbounds [4 x i8*], [4 x i8*]* %2, i64 0, i64 2
%26 = load i8*, i8** %25
%27 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0), i64 8, i8** %25, i8* %26)
%28 = getelementptr inbounds [4 x i8*], [4 x i8*]* %2, i64 0, i64 3
%29 = load i8*, i8** %28
%30 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0), i64 8, i8** %28, i8* %29)
%31 = call i32 @putchar(i32 10)
%32 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.8, i64 0, i64 0))
%33 = call i32 (...) @getchar()
ret i32 0
}