Q.1.

Does the data type of all elements in the union will be same.

Q.2.

Is the following declaration correct?
typedef *void (*pfun)(**int, *float);

Q.3.

What will be the output of the program in DOS (Compiler - Turbo C)?

#include<stdio.h>
double i;

int main()
{
    (int)(float)(char) i;
    printf("%d",sizeof(i));
    return}
Q.4.

What will be the output of the program?

#include<stdio.h>

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

Point out the error in the following program (in Turbo C under DOS).

#include<stdio.h>

union emp
{
    int empno;
    int age;
};

int main()
{
    union emp e = {25};
    printf("%d %d", e.empno, e.age);
    return}
Q.6.

What will be the output of the program in DOS (Compiler - Turbo C)?

#include<stdio.h>
double i;

int main()
{
    (int)(float)(char) i;
    printf("%d", sizeof((int)(float)(char)i));
    return}
Q.7.

What will be the output of the program?

#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.8.

Point out the error in the following program.

#include<stdio.h>
#include<stdlib.h>

int main()
{
    static char *p = (char *)malloc(10);
    return}
Q.9.

It is not necessary to typecast the address returned by malloc().

Q.10.

We can modify the pointers "source" as well as "target".

Q.11.

Is the following declaration correct?
char (* ( *f())[])();

Q.12.

Is the following declaration correct?
char far *far *ptr;

Q.13.

What will be the output of the program?

#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.14.

What will be the output of the program (in Turbo C 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.15.

What will be the output of the program?

#include<stdio.h>
typedef void v;
typedef int i;

int main()
{
    v fun(i, i);
    fun(3);
    return
}
v fun(i a, i b)
{
    i s=
    float i;
    printf("%d,", sizeof(i));
    printf(" %d", a*b*s);
}
Q.16.

Point out the error in the following program.

#include<stdio.h>
void display(int (*ff)());

int main()
{
    int show();
    int (*f)();
    f = show;
    display(f);
    return}
void display(int (*ff)())
{
    (*ff)();
}
int show()
{
    printf("IndiaBIX");
}
Q.17.

Function can return a floating point number.

Q.18.

We can allocate a 2-Dimensional array dynamically.

Q.19.

Is the following declaration correct?
void(*f)(int, void(*)());

Q.20.

What will be the output of the program?

#include<stdio.h>
typedef unsigned long int uli;
typedef uli u;

int main()
{
    uli a;
    u b = -    a = -    printf("%lu, %lu", a, b);
    return}