### Point Out Correct Statements

Question 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?

A). float **fun(float***);
B). float *fun(float**);
C). float fun(float***);
D). float ****fun(float***);
Answer : Option D

Question 2 :

Which of the statements is correct about the program?

``````#include < stdio.h >
int main()
{
int i=10;
int *j=&i;
return 0;
}``````

A). j and i are pointers to an int
B). i is a pointer to an int and stores address of j
C). j is a pointer to an int and stores address of i
D). j is a pointer to a pointer to an int and stores address of i
Answer : Option C

Question 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;
}``````

A). It prints ASCII value of the binary number present in the first byte of a float variable a.
B). It prints character equivalent of the binary number present in the first byte of a float variable a.
C). It will print 3
D). It will print a garbage value
Answer : Option A

Question 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 */
}``````

A). **k=a;
B). k=&a;
C). *k=&a
D). &k=*a
Answer : Option C

Question 5 :

Which of the following statements correct about k used in the below statement?
char ****k;

A). k is a pointer to a pointer to a pointer to a char
B). k is a pointer to a pointer to a pointer to a pointer to a char
C). k is a pointer to a char pointer
D). k is a pointer to a pointer to a char
Answer : Option B
{"ft_lang_label":"__label__en","ft_lang_prob":0.7613218,"math_prob":0.99187446,"size":872,"snap":"2019-13-2019-22","text_gpt3_token_len":232,"char_repetition_ratio":0.16705069,"word_repetition_ratio":0.28395063,"special_character_ratio":0.3130734,"punctuation_ratio":0.15508021,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9918547,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2019-03-19T20:46:28Z\",\"WARC-Record-ID\":\"<urn:uuid:3b0b1f46-2825-4c5f-8e55-100a3a8a3479>\",\"Content-Length\":\"22875\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:82bac7e9-84e5-49f2-89c4-090bcccd1611>\",\"WARC-Concurrent-To\":\"<urn:uuid:b8509ba1-aee7-4e0e-af00-1470acb0ef91>\",\"WARC-IP-Address\":\"107.180.51.25\",\"WARC-Target-URI\":\"http://www.indiaparinam.com/c-programming-language-question-answer-pointers/point-out-correct-statements\",\"WARC-Payload-Digest\":\"sha1:WZRPD2MZATMVOLXUZNROGTMT4GPRG5IM\",\"WARC-Block-Digest\":\"sha1:RY5YSEGBJVNJMQNP3EICWVCFUQFI2L44\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2019/CC-MAIN-2019-13/CC-MAIN-2019-13_segments_1552912202131.54_warc_CC-MAIN-20190319203912-20190319225912-00006.warc.gz\"}"}