Q.1.

Are the following declarations same?

char far *far *scr;
char far far** scr;
Q.2.

What will be the output of the program under DOS?

#include<stdio.h>

int main()
{
    char huge *near *far *ptr    char near *far *huge *ptr    char far *huge *near *ptr    printf("%d, %d, %d\n", sizeof(ptr1), sizeof(**ptr2), sizeof(ptr3));
    return}
Q.3.

What will be the output of the program?

#include<stdio.h>

int main()
{
    struct s    {
        char *z;
    int i;
    struct s1 *p;
    };
    static struct s1 a[] = {{"Nagpur",a+, {"Chennai",a+, 
                            {"Bangalore",a} };

    struct s1 *ptr = a;
    printf("%s,", ++(ptr->z));
    printf(" %s,", a[(++ptr)->i].z);
    printf(" %s", a[--(ptr->p->i)].z);
    return
}
Q.4.

What will be the output of the program?

#include<stdio.h>

int main()
{
    char huge *near *ptr
    char huge *far *ptr
    char huge *huge *ptr
    printf("%d, %d, %d\n", sizeof(ptr1), sizeof(ptr2), sizeof(ptr3));
    return
}
Q.5.

What do the following declaration signify?

char **argv;
Q.6.

Declare the following statement?
"A pointer to a function which receives an int pointer and returns float pointer".

Q.7.

Declare the following statement?
"An array of three pointers to chars".

Q.8.

What will be the output of the program in Turbo C?

#include<stdio.h>

int main()
{
    char near *near *ptr    char near *far *ptr    char near *huge *ptr    printf("%d, %d, %d\n", sizeof(ptr1), sizeof(ptr2), sizeof(ptr3));
    return}
Q.9.

What do the following declaration signify?

char *scr;
Q.10.

What do the following declaration signify?

void *cmp();
Q.11.

What do the following declaration signify?

int *ptr[30];
Q.12.

Declare the following statement?
"A pointer to a function which receives nothing and returns nothing".

Q.13.

Declare the following statement?
"A pointer to an array of three chars".

Q.14.

What do the following declaration signify?

char *arr[10];
Q.15.

What do the following declaration signify?

int *f();
Q.16.

What do the following declaration signify?

int (*pf)();
Q.17.

What do the following declaration signify?

void (*cmp)();