C Programming - Typedef - Discussion

Discussion Forum : Typedef - General Questions (Q.No. 3)
3.
What is x in the following program?
#include<stdio.h>

int main()
{
    typedef char (*(*arrfptr[3])())[10];
    arrfptr x;
    return 0;
}
x is a pointer
x is an array of three pointer
x is an array of three function pointers
Error in x declaration
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
14 comments Page 2 of 2.

Varshini said:   6 years ago
Then what about [10], is it same as [3]?

Prasad said:   1 decade ago
I do not understand please explain it.

Svi said:   1 decade ago
What about [10] ? Is it 2-D array ?

Harika said:   9 years ago
Nice @Gaurav Kumar.


Post your comments here:

Your comments will be displayed after verification.