1.
What is the output of the following C code:
# include
# define max

void h() {
    printf("hello");
}

void main() {
    max;
    h();
}
2.
What is the output of the following C code:

# include
# define P 1 + 2
# define Q 3 + 4

int main() {
    int max = P * Q;
    printf("%d
", max);
}
3.
What is the output of the following C code:
#include

void main() {
    char * s = "hi";
    char * p = s * 3;
    printf("%c %c", * p, s[1]);
}
4.
Which of these statements for x in the following C code is correct:
int *x[10];
5.
What is the output of the following C code:
#include <stdio.h>

void main()
{
char x[10][5] = {"hi", "hello", "mellows"};
printf("%s", x[2]);
}
6.
In C, if P denotes a Pointer to an Array and Q denotes a multi-dimensional array, which of the following statements about P and Q is correct?
7.
In C, a variable is called a pointer if __________________________________.
8.
How is the linear array length calculated when the upper bound (UB) and the lower bound (LB) of the array are given in C?
9.
The following C segment is equivalent to ______________________.
 
if (x < 0)
    flag = 0;
else
    flag = 1;
10.
In C, a string can be reversed in a _______________________________.