C Programming - Pointers

1.
Which of the following statements correctly declare a function that receives a pointer to pointer to a pointer to a float and returns a pointer to a pointer to a pointer to a pointer to a float?
float **fun(float***);
float *fun(float**);
float fun(float***);
float ****fun(float***);
Answer: Option
Explanation:
No answer description is available. Let's discuss.

2.
Which of the statements is correct about the program?
#include<stdio.h>

int main()
{
    int i=10;
    int *j=&i;
    return 0;
}
j and i are pointers to an int
i is a pointer to an int and stores address of j
j is a pointer to an int and stores address of i
j is a pointer to a pointer to an int and stores address of i
Answer: Option
Explanation:
No answer description is available. Let's discuss.

3.
Which of the statements is correct about the program?
#include<stdio.h>

int main()
{
    float a=3.14;
    char *j;
    j = (char*)&a;
    printf("%d\n", *j);
    return 0;
}
It prints ASCII value of the binary number present in the first byte of a float variable a.
It prints character equivalent of the binary number present in the first byte of a float variable a.
It will print 3
It will print a garbage value
Answer: Option
Explanation:
No answer description is available. Let's discuss.

4.
In the following program add a statement in the function fun() such that address of a gets stored in j?
#include<stdio.h>
int main()
{
    int *j;
    void fun(int**);
    fun(&j);
    return 0;
}
void fun(int **k)
{
    int a=10;
    /* Add a statement here */
}
**k=a;
k=&a;
*k=&a
&k=*a
Answer: Option
Explanation:
No answer description is available. Let's discuss.

5.
Which of the following statements correct about k used in the below statement?
char ****k;
k is a pointer to a pointer to a pointer to a char
k is a pointer to a pointer to a pointer to a pointer to a char
k is a pointer to a char pointer
k is a pointer to a pointer to a char
Answer: Option
Explanation:
No answer description is available. Let's discuss.