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 LINKED LIST? How can you access the last element in a linked list?

0 Answers   ADP,


What is a far pointer in c?

0 Answers  


State the difference between x3 and x[3].

0 Answers   Aricent,


By using C language input a date into it and if it is right?

0 Answers   Aricent,


What is extern c used for?

0 Answers  






? ???Mirror Mirror on the wall????????

1 Answers   channel V, DPI,


Input any no. and print all the the numbers that comes before it like this for e.g input = 4 0 01 012 0123 01234 plz answer it 2day

3 Answers  


can we declare a function in side the structure?

2 Answers   HCL,


Do array subscripts always start with zero?

0 Answers  


main() { struct s1 { char *str; struct s1 *ptr; }; static struct s1 arr[] = { {"Hyderabad",arr+1}, {"Bangalore",arr+2}, {"Delhi",arr} }; struct s1 *p[3]; int i; < BR> for(i=0;i<=2;i++) p[i] = arr[i].ptr; printf("%s ",(*p)->str); printf("%s ",(++*p)->str); printf("%s ",((*p)++)->str); }

0 Answers   Wilco,


write a program to display & create a rational number

1 Answers   HCL, TCS,


i have a written test for microland please give me test pattern

0 Answers   Microland,


Categories