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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

any function have arguments one or more OR not . it is compulsary a) any function compulsary have one or more arguments b) any function did not have arguments. It is not compulsary c) it is optional it is not compulsary d) none of the above

645


What is ctrl c called?

598


What would happen to X in this expression: X += 15; (assuming the value of X is 5)

1306


What are the scope of static variables?

601


how can use subset in c program and give more example

1502






What is a program?

667


Write a program that accept anumber in words

1252


What are pragmas and what are they good for?

577


Explain main function in c?

630


What will the code below print when it is executed?   int x = 3, y = 4;         if (x = 4)                 y = 5;         else                 y = 2;         printf ("x=%d, y=%d ",x,y);

1358


What is #include stdio h and #include conio h?

603


Why isn't it being handled properly?

645


code for quick sort?

1622


When is a null pointer used?

641


For what purpose null pointer used?

609