int main() {
  clr();
  float e[5];
  int x[10] = {12, 123, 324, 566, 456, 234, 456, 678, 234, 345};
  gotoxy(10, 10);
  printf("Following is a memorry map for initialized array! \n");
  for (int i = 0; i < 10; i++) {
    printf("\n Variable x[%d] Value %d Memorry Address %u", i, x[i], &x[i]);
  }
  getchar();
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1030 <clr@plt>
lea    -0x50(%rbp),%rdi
lea    0xe8f(%rip),%rsi
mov    $0x28,%edx
call   1060 <memcpy@plt>
mov    $0xa,%esi
mov    %esi,%edi
mov    $0x0,%al
call   1070 <gotoxy@plt>
lea    0xe98(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x54(%rbp)
cmpl   $0xa,-0x54(%rbp)
jge    11de <main+0x8e>
mov    -0x54(%rbp),%esi
movslq -0x54(%rbp),%rax
mov    -0x50(%rbp,%rax,4),%edx
movslq -0x54(%rbp),%rax
lea    -0x50(%rbp),%rcx
shl    $0x2,%rax
add    %rax,%rcx
lea    0xe93(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x54(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x54(%rbp)
jmp    119e <main+0x4e>
mov    $0x0,%al
call   1050 <getchar@plt>
mov    -0x4(%rbp),%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %rbx
sub    $0x30,%rsp
xor    %eax,%eax
call   1030 <clr@plt>
mov    0xeb9(%rip),%rax
mov    %rax,0x20(%rsp)
movaps 0xe9d(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
movaps 0xe81(%rip),%xmm0
movaps %xmm0,(%rsp)
lea    0x20(%rsp),%r14
lea    0x10(%rsp),%r15
mov    $0xa,%edi
mov    $0xa,%esi
xor    %eax,%eax
call   1070 <gotoxy@plt>
lea    0xeb0(%rip),%rdi
call   1040 <puts@plt>
lea    0xe77(%rip),%rbx
mov    %rsp,%rcx
mov    %rbx,%rdi
xor    %esi,%esi
mov    $0xc,%edx
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x4(%rsp),%rcx
mov    0x4(%rsp),%edx
mov    %rbx,%rdi
mov    $0x1,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x8(%rsp),%rcx
mov    0x8(%rsp),%edx
mov    %rbx,%rdi
mov    $0x2,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xc(%rsp),%rcx
mov    0xc(%rsp),%edx
mov    %rbx,%rdi
mov    $0x3,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x10(%rsp),%edx
mov    %rbx,%rdi
mov    $0x4,%esi
mov    %r15,%rcx
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x14(%rsp),%rcx
mov    0x14(%rsp),%edx
mov    %rbx,%rdi
mov    $0x5,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x18(%rsp),%rcx
mov    0x18(%rsp),%edx
mov    %rbx,%rdi
mov    $0x6,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x1c(%rsp),%rcx
mov    0x1c(%rsp),%edx
mov    %rbx,%rdi
mov    $0x7,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x20(%rsp),%edx
mov    %rbx,%rdi
mov    $0x8,%esi
mov    %r14,%rcx
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x24(%rsp),%rcx
mov    0x24(%rsp),%edx
mov    %rbx,%rdi
mov    $0x9,%esi
xor    %eax,%eax
call   1050 <printf@plt>
xor    %eax,%eax
call   1060 <getchar@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@__const.main.x = [10 x i32] [i32 12, i32 123, i32 324, i32 566, i32 456, i32 234, i32 456, i32 678, i32 234, i32 345]
@.str = [52 x i8] c"Following is a memorry map for initialized array! \0A\00"
@.str.1 = [45 x i8] c"\0A Variable x[%d] Value %d Memorry Address %u\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [5 x float]
%3 = alloca [10 x i32]
%4 = alloca i32
store i32 0, i32* %1
%5 = call i32 (...) @clr()
%6 = bitcast [10 x i32]* %3 to i8*
%7 = call i32 (i32, i32, ...) bitcast (i32 (...)* @gotoxy to i32 (i32, i32, ...)*)(i32 10, i32 10)
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str, i64 0, i64 0))
store i32 0, i32* %4
br label %9
9: ; preds = %22, %0
%10 = load i32, i32* %4
%11 = icmp slt i32 %10, 10
br i1 %11, label %12, label %25
12: ; preds = %9
%13 = load i32, i32* %4
%14 = load i32, i32* %4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds [10 x i32], [10 x i32]* %3, i64 0, i64 %15
%17 = load i32, i32* %16
%18 = load i32, i32* %4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds [10 x i32], [10 x i32]* %3, i64 0, i64 %19
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.1, i64 0, i64 0), i32 %13, i32 %17, i32* %20)
br label %22
22: ; preds = %12
%23 = load i32, i32* %4
%24 = add nsw i32 %23, 1
store i32 %24, i32* %4
br label %9
25: ; preds = %9
%26 = call i32 (...) @getchar()
%27 = load i32, i32* %1
ret i32 %27
}

LLVM IR (-O2):
@__const.main.x = [10 x i32] [i32 12, i32 123, i32 324, i32 566, i32 456, i32 234, i32 456, i32 678, i32 234, i32 345]
@.str.1 = [45 x i8] c"\0A Variable x[%d] Value %d Memorry Address %u\00"
@str = [51 x i8] c"Following is a memorry map for initialized array! \00"
define i32 @main() {
%1 = alloca [10 x i32]
%2 = tail call i32 (...) @clr()
%3 = bitcast [10 x i32]* %1 to i8*
%4 = tail call i32 (i32, i32, ...) bitcast (i32 (...)* @gotoxy to i32 (i32, i32, ...)*)(i32 10, i32 10)
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @str, i64 0, i64 0))
%6 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 0
%7 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @.str.1, i64 0, i64 0), i32 0, i32 12, i32* %6)
%8 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 1
%9 = load i32, i32* %8
%10 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @.str.1, i64 0, i64 0), i32 1, i32 %9, i32* %8)
%11 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 2
%12 = load i32, i32* %11
%13 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @.str.1, i64 0, i64 0), i32 2, i32 %12, i32* %11)
%14 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 3
%15 = load i32, i32* %14
%16 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @.str.1, i64 0, i64 0), i32 3, i32 %15, i32* %14)
%17 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 4
%18 = load i32, i32* %17
%19 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @.str.1, i64 0, i64 0), i32 4, i32 %18, i32* %17)
%20 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 5
%21 = load i32, i32* %20
%22 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @.str.1, i64 0, i64 0), i32 5, i32 %21, i32* %20)
%23 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 6
%24 = load i32, i32* %23
%25 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @.str.1, i64 0, i64 0), i32 6, i32 %24, i32* %23)
%26 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 7
%27 = load i32, i32* %26
%28 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @.str.1, i64 0, i64 0), i32 7, i32 %27, i32* %26)
%29 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 8
%30 = load i32, i32* %29
%31 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @.str.1, i64 0, i64 0), i32 8, i32 %30, i32* %29)
%32 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 9
%33 = load i32, i32* %32
%34 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @.str.1, i64 0, i64 0), i32 9, i32 %33, i32* %32)
%35 = call i32 (...) @getchar()
ret i32 0
}