edited by
559 views

1 Answer

Best answer
1 votes
1 votes

Here let us understand the meaning of each options .

Option A) is meaningless as far as I know since it is variable name first before type which is totally wrong.

Option B) says a function q which takes a pointer to character as parameter and then the return type is an array of integers..Since parantheses and array subscript operator have same precedence so associativity criterion is used..Since both of them are left to right associative , so compiler first interprets that there is a function whose set of parameter comprises of pointer to char data type and then on seeing the subscript operator it understands that the return type is pointer to an array of integers since there is a '*' before q.

Option C) says a pointer to a function q which takes pointer to char as argument and the return type is an array of integers.So C) is also not true.

Hence the correct option should be B).

selected by

Related questions

0 votes
0 votes
0 answers
1
Gurdeep Saini asked Jan 11, 2019
576 views
Let p be character pointer, consider the following statementp[i]=*(p+i)i[p]=*(i+p)p+i=&(i[p])how many are true ??
0 votes
0 votes
1 answer
3
radha gogia asked Jul 21, 2015
325 views
char ch;scanf("%c",&ch) // after I do scanning of this variable then after I press enter key then it gets stored inside the buffer so can we print this enter key .Since d...
3 votes
3 votes
0 answers
4
nishitshah asked Jan 26, 2018
648 views
Answer given is option C. How ?I gather that the character pointer will point to the first byte of the integer whose value is 255.But after that what should be the soluti...