1.
What is the output of the following C code:
 
#include
int * m() {
    int * p = 10;
    return p;
}
void main() {
    int * k = m();
    printf("%d", k);
}
2.
What is the output of the following C code:
#include
void main() {
    int a[3] = {
        1,
        2,
        3
    };
    int * p = a;
    printf("%d %d", * p, a[1]);
}
3.
What is the output of the following C code:

#include
int main() {
    int ary[4] = {
        1,
        2,
        3,
        4
    };
    int * p = ary + 3;
    printf("%d
", p[-2]);
}
4.
What is the output of the following C code:
 
#include
int main() {
    int ary[4] = {
        1,
        2,
        3,
        4
    };
    int * p = ary + 3;
    printf("%d
", p[-(3)]);
}
5.
What is the output of the following C code:
#include
int main() {
    const int ary[4] = {
        1,
        2,
        3,
        4
    };
    int * p;
    p = ary + 4;
    * p = 5;
    printf("%d
", ary[4]);
}
6.
In C, which of the following methods is used to initialize an array?
7.
In C, the elements of the array in the following code are __________________________________.
int array[5] = {5};
8.
In C, which of the following statements about an array of a void data type is false?
9.
What is the output of the following C code:
#include
int main() {
    double * ptr = (double * ) 100;
    ptr = ptr + 2;
    printf("%u", ptr);
}
10.
If x and y are two pointers in C, which of the following mathematical operations is valid?