963 views
0 votes
0 votes

2 Answers

1 votes
1 votes
(A) q is taking function a pointer to a charecter as argument and returning integer.

(B)q is taking function a pointer to a charecter as argument and returning pointer to an array of integer type.

(C) q is a pointer to taking function a pointer to a charecter as argument and returning array of integer

So, Ans (D) None of these

http://c-faq.com/decl/spiral.anderson.html
0 votes
0 votes

although the option is D 

it would have correct if it had declared this way

int(* q(char *))[  ]

Related questions

0 votes
0 votes
2 answers
2
Debargha Mitra Roy asked Apr 16
163 views
#include <stdio.h int main() { int a[3] = {1, 3, 5, 7, 9, 11}; int *ptr = a[0]; ptr += sizeof(int); printf("%d", *ptr); return 0; }(Assume size of int to be $2$ bytes.)T...