1.
What is the output of the following C code:
#include
struct p {
    int k;
    char c;
};
int p = 1;
int main() {
    struct p x;
    x.k = 10;
    printf("%d %d
", x.k, p);
}
2.
What is the output of the following C code:

#include
struct p {
    int k;
    char c;
    float f;
};
int p = 10;
int main() {
    struct p x = {
        1,
        97
    };
    printf("%f %d
", x.f, p);
}
3.
What is the output of the following C code:

#include
struct point {
    int x;
    int y;
};
int main() {
    struct point p = {
        1
    };
    struct point p1 = {
        1
    };
    if (p == p1)
        printf("equal
");
    else
        printf("not equal
");
}
4.
What is the output of the following C code:
#include
struct student {
    char * name;
};
struct student s[2];
int main() {
    s[0].name = "alan";
    s[1] = s[0];
    printf("%s%s", s[0].name, s[1].name);
}
5.
What is the output of the following C code:
#include
int main() {
    char * a[3] = {
        "hello",
        "this"
    };
    printf("%s", a[1]);
}
6.
What is the output of the following C code:
#include
typedef struct p {
    int x, y;
};
int main() {
    p k1 = {
        1,
        2
    };
    printf("%d
", k1.x);
}
7.
What is the output of the following C code:

#include
typedef struct p {
    int x, y;
}
srtuct p k = {
    1,
    2
};
int main() {
    p k1 = k;
    printf("%d
", k1.x);
}
8.
What is the output of the following C code:

#include
typedef struct p {
    int x, y;
}
k;
int main() {
    struct p p = {
        1,
        2
    };
    k k1 = p;
    printf("%d%d
", k1.x, k1.y);
}
9.
In C, which of these declarations is used to execute the following expression:
string p = “HELLO”;
10.
What is the output of the following C code:
#include
typedef struct student {
    char * a;
}
stu;
void main() {
    stu s;
    s.a = "hi";
    printf("%s", s.a);
}
s