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

What is pointer to pointer in c?

0 Answers  


Explain Function Pointer?

0 Answers   Wipro,


Implement bit Array in C.

0 Answers   GrapeCity,


Write a C/C++ program to add a user to MySQL. The user should be permitted to only "INSERT" into the given database

2 Answers   TCS, Unisys, Webyog,


What is variables in c?

0 Answers  






What is a structural principle?

0 Answers  


What is the size of structure pointer in c?

0 Answers  


What is a static function in c?

0 Answers  


how can i get this by using for loop? * ** * **** * ******

3 Answers   Excel,


what is link list?

3 Answers  


How to reverse a string using a recursive function, without swapping or using an extra memory?

31 Answers   Cisco, Mind Tree, Motorola, Ophio, Sony, TCS, Wipro,


wap to print "hello world" without using the main function.

22 Answers   TCS, Wipro,


Categories