41.
Which of the following declaration is illegal?

42.
What will be the output of the following C code?
#include <stdio.h>
int mul(int a, int b, int c)
{
    return a * b * c;
}
void main()
{
    int (function_pointer)(int, int, int);
    function_pointer = mul;
    printf("The product of three numbers is:%d",
    function_pointer(2, 3, 4));
}

45.
What will be the output of the following C code?
#include <stdio.h>
int main()
{
    int ary[4] = {1, 2, 3, 4};
    int p[4];
    p = ary;
    printf("%d\n", p[1]);
}

46.
What will be the output of the following C code?
#include <stdio.h>
int main()
{
    int *((*x)())[2];
    x();
    printf("after x\n");
}
int *((*x)())[2]
{
    int **str;
    str = (int*)malloc(sizeof(int)* 2);
    return str;
}

48.
What will be the output of the following C code?
#include <stdio.h>
int *f();
int main()
{
    int *p = f();
    printf("%d\n", *p);
}
int *f()
{
    int j = 10;
    return &j;
}

49.
What will be the output of the following C code?
#include <stdio.h>
struct student
{
    int no;
    char name[20];
};
void main()
{
    student s;
    s.name = "hello";
    printf("hello");
}

50.
Which of the following are generated from char pointer?

Read More Section(Pointer)

Each Section contains maximum 100 MCQs question on Pointer. To get more questions visit other sections.