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
Write a program to reverse a given number in c?
How pointers are declared?
What is the purpose of 'register' keyword?
Does * p ++ increment p or what it points to?
What's the best way of making my program efficient?
Suppose we have a table name EMP as below. We want to perform a operation in which, I want to change name ‘SMITH’ from as ‘SMITH JAIN’. Also I want to change the name of the column from ENAME to E_NAME. EMPNO ENAME JOB MGR HIREDATE SAL 7369 SMITH Coder 7902 17-DEC-80 800 7499 ALLEN SALESMAN 7698 20-FEB-81 1600 7521 WARD SALESMAN 7698 22-FEB-81 1250
A collection of data with a given structure for excepting storing and providing on demand data for multiple users a) linked list b) datastructer c) database d) preprocessor
How can you pass an array to a function by value?
What is a null pointer in c?
I heard that you have to include stdio.h before calling printf. Why?
What happens if you free a pointer twice?
Explain #pragma statements.
ATM machine and railway reservation class/object diagram
What is the scope of local variable in c?
How would you use the functions fseek(), freed(), fwrite() and ftell()?