char *month_name(int n) {
  char i = 0;
  static char *name[] = {
      "wrong", "jan", "feb", "march", "apr", "may", "jun",
      "jul",   "aug", "sep", "oct",   "nov", "dec",
  };
  printf("\nname [ 1 ] = ( %%p ) '%p' as pointer and * name [ 1 ] = ( %%c "
         ")'%c' as char;\n\n",
         name[1], *name[1]);
  printf("& name [ 1 ] = %p as pointer; and * name [ 1 ] as pointer = %p; amd "
         "as * name [ 1 ]  %d \n\n",
         &name[1], *name[1], *name[1]);
  for (i = 0; i <= 12; i++) {
    printf(
        "* name [ i = %2d ] = %3d as digital ( %%d ); and name [ %2d ] = %d;\n",
        i, *name[i], i, name[i]);
  }
  return (n < 1 || n > 12) ? name[0] : name[n];
}


x86 assembly (clang, -O0):
<month_name>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
movb   $0x0,-0x5(%rbp)
mov    0x2f12(%rip),%rsi
mov    0x2f0b(%rip),%rax
movsbl (%rax),%edx
lea    0xf01(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2ef3(%rip),%rax
movsbl (%rax),%edx
mov    0x2ee9(%rip),%rax
movsbl (%rax),%ecx
lea    0xf2f(%rip),%rdi
lea    0x2ed0(%rip),%rsi
add    $0x8,%rsi
mov    $0x0,%al
call   1030 <printf@plt>
movb   $0x0,-0x5(%rbp)
movsbl -0x5(%rbp),%eax
cmp    $0xc,%eax
jg     11c2 <month_name+0xb2>
movsbl -0x5(%rbp),%esi
movsbq -0x5(%rbp),%rcx
lea    0x2ea4(%rip),%rax
mov    (%rax,%rcx,8),%rax
movsbl (%rax),%edx
movsbl -0x5(%rbp),%ecx
movsbq -0x5(%rbp),%rdi
lea    0x2e8d(%rip),%rax
mov    (%rax,%rdi,8),%r8
lea    0xf35(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x5(%rbp),%al
add    $0x1,%al
mov    %al,-0x5(%rbp)
jmp    116f <month_name+0x5f>
cmpl   $0x1,-0x4(%rbp)
jl     11d6 <month_name+0xc6>
cmpl   $0xc,-0x4(%rbp)
jle    11e6 <month_name+0xd6>
mov    0x2e53(%rip),%rax
mov    %rax,-0x10(%rbp)
jmp    11f9 <month_name+0xe9>
movslq -0x4(%rbp),%rcx
lea    0x2e3f(%rip),%rax
mov    (%rax,%rcx,8),%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<month_name>:
push   %r15
push   %r14
push   %rbx
mov    %edi,%r14d
lea    0x2f11(%rip),%r15
lea    0x2f12(%rip),%rbx
mov    0x2f0b(%rip),%rsi
movsbl (%rsi),%edx
lea    0xf01(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x2ef3(%rip),%rax
movsbl (%rax),%ecx
lea    0xf39(%rip),%rdi
mov    %rbx,%rsi
mov    %ecx,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x2ece(%rip),%r8
movsbl (%r8),%edx
lea    0xf76(%rip),%rbx
mov    %rbx,%rdi
xor    %esi,%esi
xor    %ecx,%ecx
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x2eb6(%rip),%r8
movsbl (%r8),%edx
mov    %rbx,%rdi
mov    $0x1,%esi
mov    $0x1,%ecx
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x2e9f(%rip),%r8
movsbl (%r8),%edx
mov    %rbx,%rdi
mov    $0x2,%esi
mov    $0x2,%ecx
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x2e88(%rip),%r8
movsbl (%r8),%edx
mov    %rbx,%rdi
mov    $0x3,%esi
mov    $0x3,%ecx
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x2e71(%rip),%r8
movsbl (%r8),%edx
mov    %rbx,%rdi
mov    $0x4,%esi
mov    $0x4,%ecx
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x2e5a(%rip),%r8
movsbl (%r8),%edx
mov    %rbx,%rdi
mov    $0x5,%esi
mov    $0x5,%ecx
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x2e43(%rip),%r8
movsbl (%r8),%edx
mov    %rbx,%rdi
mov    $0x6,%esi
mov    $0x6,%ecx
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x2e2c(%rip),%r8
movsbl (%r8),%edx
mov    %rbx,%rdi
mov    $0x7,%esi
mov    $0x7,%ecx
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x2e15(%rip),%r8
movsbl (%r8),%edx
mov    %rbx,%rdi
mov    $0x8,%esi
mov    $0x8,%ecx
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x2dfe(%rip),%r8
movsbl (%r8),%edx
mov    %rbx,%rdi
mov    $0x9,%esi
mov    $0x9,%ecx
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x2de7(%rip),%r8
movsbl (%r8),%edx
mov    %rbx,%rdi
mov    $0xa,%esi
mov    $0xa,%ecx
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x2dd0(%rip),%r8
movsbl (%r8),%edx
mov    %rbx,%rdi
mov    $0xb,%esi
mov    $0xb,%ecx
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x2db9(%rip),%r8
movsbl (%r8),%edx
mov    %rbx,%rdi
mov    $0xc,%esi
mov    $0xc,%ecx
xor    %eax,%eax
call   1030 <printf@plt>
lea    -0xd(%r14),%eax
cmp    $0xfffffff4,%eax
movslq %r14d,%rax
lea    (%r15,%rax,8),%rax
cmovb  %r15,%rax
mov    (%rax),%rax
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@month_name.name = internal global [13 x i8*] [i8* getelementptr inbounds ([6 x i8], [6 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 ([6 x i8], [6 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.11, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.12, i32 0, i32 0)]
@.str = [6 x i8] c"wrong\00"
@.str.1 = [4 x i8] c"jan\00"
@.str.2 = [4 x i8] c"feb\00"
@.str.3 = [6 x i8] c"march\00"
@.str.4 = [4 x i8] c"apr\00"
@.str.5 = [4 x i8] c"may\00"
@.str.6 = [4 x i8] c"jun\00"
@.str.7 = [4 x i8] c"jul\00"
@.str.8 = [4 x i8] c"aug\00"
@.str.9 = [4 x i8] c"sep\00"
@.str.10 = [4 x i8] c"oct\00"
@.str.11 = [4 x i8] c"nov\00"
@.str.12 = [4 x i8] c"dec\00"
@.str.13 = [80 x i8] c"\0Aname [ 1 ] = ( %%p ) '%p' as pointer and * name [ 1 ] = ( %%c )'%c' as char;\0A\0A\00"
@.str.14 = [91 x i8] c"& name [ 1 ] = %p as pointer; and * name [ 1 ] as pointer = %p; amd as * name [ 1 ] %d \0A\0A\00"
@.str.15 = [69 x i8] c"* name [ i = %2d ] = %3d as digital ( %%d ); and name [ %2d ] = %d;\0A\00"
define i8* @month_name(i32 %0) {
%2 = alloca i32
%3 = alloca i8
store i32 %0, i32* %2
store i8 0, i8* %3
%4 = load i8*, i8** getelementptr inbounds ([13 x i8*], [13 x i8*]* @month_name.name, i64 0, i64 1)
%5 = load i8*, i8** getelementptr inbounds ([13 x i8*], [13 x i8*]* @month_name.name, i64 0, i64 1)
%6 = load i8, i8* %5
%7 = sext i8 %6 to i32
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([80 x i8], [80 x i8]* @.str.13, i64 0, i64 0), i8* %4, i32 %7)
%9 = load i8*, i8** getelementptr inbounds ([13 x i8*], [13 x i8*]* @month_name.name, i64 0, i64 1)
%10 = load i8, i8* %9
%11 = sext i8 %10 to i32
%12 = load i8*, i8** getelementptr inbounds ([13 x i8*], [13 x i8*]* @month_name.name, i64 0, i64 1)
%13 = load i8, i8* %12
%14 = sext i8 %13 to i32
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([91 x i8], [91 x i8]* @.str.14, i64 0, i64 0), i8** getelementptr inbounds ([13 x i8*], [13 x i8*]* @month_name.name, i64 0, i64 1), i32 %11, i32 %14)
store i8 0, i8* %3
br label %16
16: ; preds = %36, %1
%17 = load i8, i8* %3
%18 = sext i8 %17 to i32
%19 = icmp sle i32 %18, 12
br i1 %19, label %20, label %39
20: ; preds = %16
%21 = load i8, i8* %3
%22 = sext i8 %21 to i32
%23 = load i8, i8* %3
%24 = sext i8 %23 to i64
%25 = getelementptr inbounds [13 x i8*], [13 x i8*]* @month_name.name, i64 0, i64 %24
%26 = load i8*, i8** %25
%27 = load i8, i8* %26
%28 = sext i8 %27 to i32
%29 = load i8, i8* %3
%30 = sext i8 %29 to i32
%31 = load i8, i8* %3
%32 = sext i8 %31 to i64
%33 = getelementptr inbounds [13 x i8*], [13 x i8*]* @month_name.name, i64 0, i64 %32
%34 = load i8*, i8** %33
%35 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.15, i64 0, i64 0), i32 %22, i32 %28, i32 %30, i8* %34)
br label %36
36: ; preds = %20
%37 = load i8, i8* %3
%38 = add i8 %37, 1
store i8 %38, i8* %3
br label %16
39: ; preds = %16
%40 = load i32, i32* %2
%41 = icmp slt i32 %40, 1
br i1 %41, label %45, label %42
42: ; preds = %39
%43 = load i32, i32* %2
%44 = icmp sgt i32 %43, 12
br i1 %44, label %45, label %47
45: ; preds = %42, %39
%46 = load i8*, i8** getelementptr inbounds ([13 x i8*], [13 x i8*]* @month_name.name, i64 0, i64 0)
br label %52
47: ; preds = %42
%48 = load i32, i32* %2
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds [13 x i8*], [13 x i8*]* @month_name.name, i64 0, i64 %49
%51 = load i8*, i8** %50
br label %52
52: ; preds = %47, %45
%53 = phi i8* [ %46, %45 ], [ %51, %47 ]
ret i8* %53
}

LLVM IR (-O2):
@month_name.name = internal global [13 x i8*] [i8* getelementptr inbounds ([6 x i8], [6 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 ([6 x i8], [6 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.11, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.12, i32 0, i32 0)]
@.str = [6 x i8] c"wrong\00"
@.str.1 = [4 x i8] c"jan\00"
@.str.2 = [4 x i8] c"feb\00"
@.str.3 = [6 x i8] c"march\00"
@.str.4 = [4 x i8] c"apr\00"
@.str.5 = [4 x i8] c"may\00"
@.str.6 = [4 x i8] c"jun\00"
@.str.7 = [4 x i8] c"jul\00"
@.str.8 = [4 x i8] c"aug\00"
@.str.9 = [4 x i8] c"sep\00"
@.str.10 = [4 x i8] c"oct\00"
@.str.11 = [4 x i8] c"nov\00"
@.str.12 = [4 x i8] c"dec\00"
@.str.13 = [80 x i8] c"\0Aname [ 1 ] = ( %%p ) '%p' as pointer and * name [ 1 ] = ( %%c )'%c' as char;\0A\0A\00"
@.str.14 = [91 x i8] c"& name [ 1 ] = %p as pointer; and * name [ 1 ] as pointer = %p; amd as * name [ 1 ] %d \0A\0A\00"
@.str.15 = [69 x i8] c"* name [ i = %2d ] = %3d as digital ( %%d ); and name [ %2d ] = %d;\0A\00"
define i8* @month_name(i32 %0) {
%2 = load i8*, i8** getelementptr inbounds ([13 x i8*], [13 x i8*]* @month_name.name, i64 0, i64 1)
%3 = load i8, i8* %2
%4 = sext i8 %3 to i32
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([80 x i8], [80 x i8]* @.str.13, i64 0, i64 0), i8* %2, i32 %4)
%6 = load i8*, i8** getelementptr inbounds ([13 x i8*], [13 x i8*]* @month_name.name, i64 0, i64 1)
%7 = load i8, i8* %6
%8 = sext i8 %7 to i32
%9 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([91 x i8], [91 x i8]* @.str.14, i64 0, i64 0), i8** getelementptr inbounds ([13 x i8*], [13 x i8*]* @month_name.name, i64 0, i64 1), i32 %8, i32 %8)
%10 = load i8*, i8** getelementptr inbounds ([13 x i8*], [13 x i8*]* @month_name.name, i64 0, i64 0)
%11 = load i8, i8* %10
%12 = sext i8 %11 to i32
%13 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([69 x i8], [69 x i8]* @.str.15, i64 0, i64 0), i32 0, i32 %12, i32 0, i8* %10)
%14 = load i8*, i8** getelementptr inbounds ([13 x i8*], [13 x i8*]* @month_name.name, i64 0, i64 1)
%15 = load i8, i8* %14
%16 = sext i8 %15 to i32
%17 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([69 x i8], [69 x i8]* @.str.15, i64 0, i64 0), i32 1, i32 %16, i32 1, i8* %14)
%18 = load i8*, i8** getelementptr inbounds ([13 x i8*], [13 x i8*]* @month_name.name, i64 0, i64 2)
%19 = load i8, i8* %18
%20 = sext i8 %19 to i32
%21 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([69 x i8], [69 x i8]* @.str.15, i64 0, i64 0), i32 2, i32 %20, i32 2, i8* %18)
%22 = load i8*, i8** getelementptr inbounds ([13 x i8*], [13 x i8*]* @month_name.name, i64 0, i64 3)
%23 = load i8, i8* %22
%24 = sext i8 %23 to i32
%25 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([69 x i8], [69 x i8]* @.str.15, i64 0, i64 0), i32 3, i32 %24, i32 3, i8* %22)
%26 = load i8*, i8** getelementptr inbounds ([13 x i8*], [13 x i8*]* @month_name.name, i64 0, i64 4)
%27 = load i8, i8* %26
%28 = sext i8 %27 to i32
%29 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([69 x i8], [69 x i8]* @.str.15, i64 0, i64 0), i32 4, i32 %28, i32 4, i8* %26)
%30 = load i8*, i8** getelementptr inbounds ([13 x i8*], [13 x i8*]* @month_name.name, i64 0, i64 5)
%31 = load i8, i8* %30
%32 = sext i8 %31 to i32
%33 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([69 x i8], [69 x i8]* @.str.15, i64 0, i64 0), i32 5, i32 %32, i32 5, i8* %30)
%34 = load i8*, i8** getelementptr inbounds ([13 x i8*], [13 x i8*]* @month_name.name, i64 0, i64 6)
%35 = load i8, i8* %34
%36 = sext i8 %35 to i32
%37 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([69 x i8], [69 x i8]* @.str.15, i64 0, i64 0), i32 6, i32 %36, i32 6, i8* %34)
%38 = load i8*, i8** getelementptr inbounds ([13 x i8*], [13 x i8*]* @month_name.name, i64 0, i64 7)
%39 = load i8, i8* %38
%40 = sext i8 %39 to i32
%41 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([69 x i8], [69 x i8]* @.str.15, i64 0, i64 0), i32 7, i32 %40, i32 7, i8* %38)
%42 = load i8*, i8** getelementptr inbounds ([13 x i8*], [13 x i8*]* @month_name.name, i64 0, i64 8)
%43 = load i8, i8* %42
%44 = sext i8 %43 to i32
%45 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([69 x i8], [69 x i8]* @.str.15, i64 0, i64 0), i32 8, i32 %44, i32 8, i8* %42)
%46 = load i8*, i8** getelementptr inbounds ([13 x i8*], [13 x i8*]* @month_name.name, i64 0, i64 9)
%47 = load i8, i8* %46
%48 = sext i8 %47 to i32
%49 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([69 x i8], [69 x i8]* @.str.15, i64 0, i64 0), i32 9, i32 %48, i32 9, i8* %46)
%50 = load i8*, i8** getelementptr inbounds ([13 x i8*], [13 x i8*]* @month_name.name, i64 0, i64 10)
%51 = load i8, i8* %50
%52 = sext i8 %51 to i32
%53 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([69 x i8], [69 x i8]* @.str.15, i64 0, i64 0), i32 10, i32 %52, i32 10, i8* %50)
%54 = load i8*, i8** getelementptr inbounds ([13 x i8*], [13 x i8*]* @month_name.name, i64 0, i64 11)
%55 = load i8, i8* %54
%56 = sext i8 %55 to i32
%57 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([69 x i8], [69 x i8]* @.str.15, i64 0, i64 0), i32 11, i32 %56, i32 11, i8* %54)
%58 = load i8*, i8** getelementptr inbounds ([13 x i8*], [13 x i8*]* @month_name.name, i64 0, i64 12)
%59 = load i8, i8* %58
%60 = sext i8 %59 to i32
%61 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([69 x i8], [69 x i8]* @.str.15, i64 0, i64 0), i32 12, i32 %60, i32 12, i8* %58)
%62 = add i32 %0, -13
%63 = icmp ult i32 %62, -12
%64 = sext i32 %0 to i64
%65 = getelementptr inbounds [13 x i8*], [13 x i8*]* @month_name.name, i64 0, i64 %64
%66 = select i1 %63, i8** getelementptr inbounds ([13 x i8*], [13 x i8*]* @month_name.name, i64 0, i64 0), i8** %65
%67 = load i8*, i8** %66
ret i8* %67
}