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 c variable?

0 Answers  


1.Why do you call C is middle level language? 2.Why do you call C is userfriendly language.

2 Answers  


How a string is stored in c?

0 Answers  


What is operator precedence?

0 Answers  


What is the importance of c in your views?

0 Answers  






Does * p ++ increment p or what it points to?

0 Answers  


#define MAX 3 main() { printf("MAX = %d \n",MAX ); #undef MAX #ifdef MAX printf("Vector Instituteā€); #endif

4 Answers   IBM, Vector,


In this problem you are to write a program that will cut some number of prime numbers from the list of prime numbers between 1 and N.Your program will read in a number N; determine the list of prime numbers between 1 and N; and print the C*2 prime numbers from the center of the list if there are an even number of prime numbers or (C*2)-1 prime numbers from the center of the list if there are an odd number of prime numbers in the list.

0 Answers  


what is pointer

1 Answers   TCS,


Tell me about low level programming languages.

0 Answers   Amdocs,


How do I get an accurate error status return from system on ms-dos?

0 Answers  


Why we use int main and void main?

0 Answers  


Categories