int main01(void) {
  char a0[30] = "22222222222";
  char a1[30] = "11111111111";
  char a2[30] = "bbbbbbbbbbb";
  char a3[30] = "aaaaaaaaaaaa";
  char a[][30] = {"22222222222", "11111111111", "bbbbbbbbbbb", "aaaaaaaaaaaa"};
  printf("a:%d, a+1: %d\n", a, a + 1);
  char b[30];
  printf("&b:%d, &b+1:%d\n", &b, &b + 1);
  printf("b:%d, b+1:%d\n", b, b + 1);
  int n = sizeof(a) / sizeof(a[0]);
  printf("n = %d\n", n);
  int i = 0;
  for (i = 0; i < 4; i++) {
    printf("%s\n", a[i]);
  }
  printf("\n");
  system("pause");
  return 0;
}


x86 assembly (clang, -O0):
<main01>:
push   %rbp
mov    %rsp,%rbp
sub    $0x130,%rsp
mov    0xebe(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    0xebb(%rip),%rax
mov    %rax,-0x18(%rbp)
mov    0xeb8(%rip),%rax
mov    %rax,-0x10(%rbp)
mov    0xeb6(%rip),%eax
mov    %eax,-0x8(%rbp)
mov    0xeb0(%rip),%ax
mov    %ax,-0x4(%rbp)
mov    0xea9(%rip),%rax
mov    %rax,-0x40(%rbp)
mov    0xea6(%rip),%rax
mov    %rax,-0x38(%rbp)
mov    0xea3(%rip),%rax
mov    %rax,-0x30(%rbp)
mov    0xea1(%rip),%eax
mov    %eax,-0x28(%rbp)
mov    0xe9b(%rip),%ax
mov    %ax,-0x24(%rbp)
mov    0xe94(%rip),%rax
mov    %rax,-0x60(%rbp)
mov    0xe91(%rip),%rax
mov    %rax,-0x58(%rbp)
mov    0xe8e(%rip),%rax
mov    %rax,-0x50(%rbp)
mov    0xe8c(%rip),%eax
mov    %eax,-0x48(%rbp)
mov    0xe86(%rip),%ax
mov    %ax,-0x44(%rbp)
mov    0xe7f(%rip),%rax
mov    %rax,-0x80(%rbp)
mov    0xe7c(%rip),%rax
mov    %rax,-0x78(%rbp)
mov    0xe79(%rip),%rax
mov    %rax,-0x70(%rbp)
mov    0xe77(%rip),%eax
mov    %eax,-0x68(%rbp)
mov    0xe71(%rip),%ax
mov    %ax,-0x64(%rbp)
lea    -0x100(%rbp),%rdi
lea    0xe63(%rip),%rsi
mov    $0x78,%edx
call   1050 <memcpy@plt>
lea    -0x100(%rbp),%rsi
lea    -0x100(%rbp),%rdx
add    $0x1e,%rdx
lea    0xeb8(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x120(%rbp),%rdx
add    $0x1e,%rdx
lea    0xeae(%rip),%rdi
lea    -0x120(%rbp),%rsi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x120(%rbp),%rsi
lea    -0x120(%rbp),%rdx
add    $0x1,%rdx
lea    0xe97(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x4,-0x124(%rbp)
mov    -0x124(%rbp),%esi
lea    0xe87(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x128(%rbp)
movl   $0x0,-0x128(%rbp)
cmpl   $0x4,-0x128(%rbp)
jge    12fd <main01+0x1cd>
movslq -0x128(%rbp),%rax
lea    -0x100(%rbp),%rsi
imul   $0x1e,%rax,%rax
add    %rax,%rsi
lea    0xe4b(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x128(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x128(%rbp)
jmp    12b9 <main01+0x189>
lea    0xe01(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xe1f(%rip),%rdi
mov    $0x0,%al
call   1030 <system@plt>
xor    %eax,%eax
add    $0x130,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main01>:
push   %r15
push   %r14
push   %rbx
sub    $0xa0,%rsp
mov    0xf1d(%rip),%rax
mov    %rax,0x90(%rsp)
movaps 0xefe(%rip),%xmm0
movaps %xmm0,0x80(%rsp)
movaps 0xedf(%rip),%xmm0
movaps %xmm0,0x70(%rsp)
movaps 0xec3(%rip),%xmm0
movaps %xmm0,0x60(%rsp)
movaps 0xea7(%rip),%xmm0
movaps %xmm0,0x50(%rsp)
movaps 0xe8b(%rip),%xmm0
movaps %xmm0,0x40(%rsp)
movaps 0xe6f(%rip),%xmm0
movaps %xmm0,0x30(%rsp)
movaps 0xe53(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
lea    0x3e(%rsp),%r14
lea    0xeba(%rip),%rdi
lea    0x20(%rsp),%r15
mov    %r15,%rsi
mov    %r14,%rdx
xor    %eax,%eax
call   1060 <printf@plt>
lea    0x1e(%rsp),%rdx
lea    0xeab(%rip),%rdi
mov    %rsp,%rbx
mov    %rbx,%rsi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0x1(%rsp),%rdx
lea    0xea2(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xe9f(%rip),%rdi
mov    $0x4,%esi
xor    %eax,%eax
call   1060 <printf@plt>
mov    %r15,%rdi
call   1040 <puts@plt>
mov    %r14,%rdi
call   1040 <puts@plt>
lea    0x5c(%rsp),%rdi
call   1040 <puts@plt>
lea    0x7a(%rsp),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xe66(%rip),%rdi
xor    %eax,%eax
call   1050 <system@plt>
xor    %eax,%eax
add    $0xa0,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@__const.main01.a0 = [30 x i8] c"22222222222\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00"
@__const.main01.a1 = [30 x i8] c"11111111111\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00"
@__const.main01.a2 = [30 x i8] c"bbbbbbbbbbb\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00"
@__const.main01.a3 = [30 x i8] c"aaaaaaaaaaaa\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00"
@__const.main01.a = [4 x [30 x i8]] [[30 x i8] c"22222222222\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00", [30 x i8] c"11111111111\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00", [30 x i8] c"bbbbbbbbbbb\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00", [30 x i8] c"aaaaaaaaaaaa\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00"]
@.str = [15 x i8] c"a:%d, a+1: %d\0A\00"
@.str.1 = [16 x i8] c"&b:%d, &b+1:%d\0A\00"
@.str.2 = [14 x i8] c"b:%d, b+1:%d\0A\00"
@.str.3 = [8 x i8] c"n = %d\0A\00"
@.str.4 = [4 x i8] c"%s\0A\00"
@.str.5 = [2 x i8] c"\0A\00"
@.str.6 = [6 x i8] c"pause\00"
define i32 @main01() {
%1 = alloca [30 x i8]
%2 = alloca [30 x i8]
%3 = alloca [30 x i8]
%4 = alloca [30 x i8]
%5 = alloca [4 x [30 x i8]]
%6 = alloca [30 x i8]
%7 = alloca i32
%8 = alloca i32
%9 = bitcast [30 x i8]* %1 to i8*
%10 = bitcast [30 x i8]* %2 to i8*
%11 = bitcast [30 x i8]* %3 to i8*
%12 = bitcast [30 x i8]* %4 to i8*
%13 = bitcast [4 x [30 x i8]]* %5 to i8*
%14 = getelementptr inbounds [4 x [30 x i8]], [4 x [30 x i8]]* %5, i64 0, i64 0
%15 = getelementptr inbounds [4 x [30 x i8]], [4 x [30 x i8]]* %5, i64 0, i64 0
%16 = getelementptr inbounds [30 x i8], [30 x i8]* %15, i64 1
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), [30 x i8]* %14, [30 x i8]* %16)
%18 = getelementptr inbounds [30 x i8], [30 x i8]* %6, i64 1
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), [30 x i8]* %6, [30 x i8]* %18)
%20 = getelementptr inbounds [30 x i8], [30 x i8]* %6, i64 0, i64 0
%21 = getelementptr inbounds [30 x i8], [30 x i8]* %6, i64 0, i64 0
%22 = getelementptr inbounds i8, i8* %21, i64 1
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i8* %20, i8* %22)
store i32 4, i32* %7
%24 = load i32, i32* %7
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i32 %24)
store i32 0, i32* %8
store i32 0, i32* %8
br label %26
26: ; preds = %35, %0
%27 = load i32, i32* %8
%28 = icmp slt i32 %27, 4
br i1 %28, label %29, label %38
29: ; preds = %26
%30 = load i32, i32* %8
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds [4 x [30 x i8]], [4 x [30 x i8]]* %5, i64 0, i64 %31
%33 = getelementptr inbounds [30 x i8], [30 x i8]* %32, i64 0, i64 0
%34 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* %33)
br label %35
35: ; preds = %29
%36 = load i32, i32* %8
%37 = add nsw i32 %36, 1
store i32 %37, i32* %8
br label %26
38: ; preds = %26
%39 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
%40 = call i32 (i8*, ...) bitcast (i32 (...)* @system to i32 (i8*, ...)*)(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@__const.main01.a = [4 x [30 x i8]] [[30 x i8] c"22222222222\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00", [30 x i8] c"11111111111\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00", [30 x i8] c"bbbbbbbbbbb\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00", [30 x i8] c"aaaaaaaaaaaa\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00"]
@.str = [15 x i8] c"a:%d, a+1: %d\0A\00"
@.str.1 = [16 x i8] c"&b:%d, &b+1:%d\0A\00"
@.str.2 = [14 x i8] c"b:%d, b+1:%d\0A\00"
@.str.3 = [8 x i8] c"n = %d\0A\00"
@.str.6 = [6 x i8] c"pause\00"
define i32 @main01() {
%1 = alloca [4 x [30 x i8]]
%2 = alloca [30 x i8]
%3 = getelementptr inbounds [4 x [30 x i8]], [4 x [30 x i8]]* %1, i64 0, i64 0, i64 0
%4 = getelementptr inbounds [4 x [30 x i8]], [4 x [30 x i8]]* %1, i64 0, i64 0
%5 = getelementptr inbounds [4 x [30 x i8]], [4 x [30 x i8]]* %1, i64 0, i64 1
%6 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), [30 x i8]* %4, [30 x i8]* %5)
%7 = getelementptr inbounds [30 x i8], [30 x i8]* %2, i64 0, i64 0
%8 = getelementptr inbounds [30 x i8], [30 x i8]* %2, i64 1
%9 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), [30 x i8]* %2, [30 x i8]* %8)
%10 = getelementptr inbounds [30 x i8], [30 x i8]* %2, i64 0, i64 1
%11 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i8* %7, i8* %10)
%12 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i32 4)
%13 = call i32 @puts(i8* %3)
%14 = getelementptr inbounds [4 x [30 x i8]], [4 x [30 x i8]]* %1, i64 0, i64 1, i64 0
%15 = call i32 @puts(i8* %14)
%16 = getelementptr inbounds [4 x [30 x i8]], [4 x [30 x i8]]* %1, i64 0, i64 2, i64 0
%17 = call i32 @puts(i8* %16)
%18 = getelementptr inbounds [4 x [30 x i8]], [4 x [30 x i8]]* %1, i64 0, i64 3, i64 0
%19 = call i32 @puts(i8* %18)
%20 = call i32 @putchar(i32 10)
%21 = call i32 (i8*, ...) bitcast (i32 (...)* @system to i32 (i8*, ...)*)(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0))
ret i32 0
}