6. 

What will be the output of the program if the array begins at 65472 and each integer occupies 2 bytes?

#include<stdio.h>

int main()
{
    int a[3][4] = {1, 2, 3, 4, 4, 3, 2, 1, 7, 8, 9, 0};
    printf("%u, %u\n", a+1, &a+1);
    return 0;
}

A. 65474, 65476
B. 65480, 65496
C. 65480, 65488
D. 65474, 65488

7. 

What will be the output of the program in Turb C (under DOS)?

#include<stdio.h>

int main()
{
    int arr[5], i=0;
    while(i<5)
        arr[i]=++i;

    for(i=0; i<5; i++)
        printf("%d, ", arr[i]);

    return 0;
}

A. 1, 2, 3, 4, 5,
B. Garbage value, 1, 2, 3, 4,
C. 0, 1, 2, 3, 4,
D. 2, 3, 4, 5, 6,

8. 

What will be the output of the program ?

#include<stdio.h>

int main()
{
    int arr[1]={10};
    printf("%d\n", 0[arr]);
    return 0;
}

A. 1
B. 10
C. 0
D. 6

9. 

What will be the output of the program if the array begins at address 65486?

#include<stdio.h>

int main()
{
    int arr[] = {12, 14, 15, 23, 45};
    printf("%u, %u\n", arr, &arr);
    return 0;
}

A. 65486, 65488
B. 65486, 65486
C. 65486, 65490
D. 65486, 65487

10. 

What will be the output of the program ?

#include<stdio.h>

int main()
{
    float arr[] = {12.4, 2.3, 4.5, 6.7};
    printf("%d\n", sizeof(arr)/sizeof(arr[0]));
    return 0;
}

A. 5
B. 4
C. 6
D. 7