what about "char *(*(*a[])())();"

Answers were Sorted based on User's Feedback



what about "char *(*(*a[])())();" ..

Answer / jaroosh

"char *(*(*a[])())();"
is a string, but
char *(*(*a[])())();
is NOT.
It is simply a function pointer declaration, which says :
"declare an array named 'a', of pointers to functions that
take no arguments and return a pointer to a function that
takes no arguments and returns a pointer to char"...thew,
reading function pointers is actually kinda complicated.

NOTE: char *(*(*a[])())(); is an erroneous declaration, for
it to be proper, you have to specify array size, eg:
char *(*(*a[5])())(); will work.

Is This Answer Correct ?    4 Yes 0 No

what about "char *(*(*a[])())();" ..

Answer / guest

Simply it is a string.Bze in C the contents within "" will
treate as strings.

Is This Answer Correct ?    2 Yes 2 No

what about "char *(*(*a[])())();" ..

Answer / sandeep rehlan

this is a pointer to an array

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

when i declare as: void main() { clrscr(); int a=10; printf("%d",a) } my problem that why generate a error in above programs. please tell me answer seriously .

4 Answers  


write a program whose output will be- 1 12 123 1234

10 Answers  


What is Function Pointer? Explain with example?

3 Answers  


What is the scope of global variable in c?

0 Answers  


In C, What is the #line used for?

2 Answers  






we have a 3litres jug and a 5 litres jug and no measures on them. using these two jugs how can we measure 4 litres of water?

2 Answers   Convergys,


Why main is used in c?

0 Answers  


What do you understand by friend-functions? How are they used?

0 Answers   iNautix,


write a c program for print your name .but,your name may be small letter mean print a capital letter or your name may be capital letter mean print a small letter .example \\enter ur name : sankar The name is: SANKAR (or) enter your name:SAnkar The name is:saNKAR

5 Answers  


Explain how many levels deep can include files be nested?

0 Answers  


how to swap 2 numbers within a single statement?

4 Answers  


2. What is the function of ceil(X) defined in math.h do? A)It returns the value rounded down to the next lower integer B)it returns the value rounded up to the next higher integer C)the Next Higher Value D)the next lower value

3 Answers   Accenture,


Categories