edited by
2,790 views
4 votes
4 votes

What does the following expression means ?

char $∗(∗(∗ a\left[N\right]) ( )) ( )$;

  1. A pointer to a function returning array of n pointers to function returning character pointers. 
  2. A function return array of N pointers to functions returning pointers to characters 
  3. An array of n pointers to function returning pointers to characters 
  4. An array of n pointers to function returning pointers to functions returning pointers to characters. 
edited by

2 Answers

3 votes
3 votes

                    a                     -- a 

                   a[N]               -- is an N-element array 

                  *a[N]               -- of pointers

                 (*a[N])()            -- to functions

                *(*a[N])()            -- returning pointers

               (*(*a[N])())()         -- to functions

              *(*(*a[N])())()         -- returning pointers

       char *(*(*a[N])())()         -- to char.

Hence,Option(D)An array of n pointers to function returning pointers to functions returning pointers to characters.

Answer:

Related questions

2 votes
2 votes
2 answers
1
makhdoom ghaya asked Jul 20, 2016
3,304 views
What will be the output of the following $'C'$ code ?main () { int x = 128; printf ("\n%d", 1+x++); }$128$$129$ $130$ $131$
3 votes
3 votes
3 answers
3
2 votes
2 votes
1 answer
4
makhdoom ghaya asked Jul 24, 2016
1,562 views
Match the following $:$ $\begin{array}{clcl} & \textbf{List – I} && \textbf{List – II} \\ \text{a.} & \text{Call Control protocol} &\text{i.} & \text{Interface b...