Hi Grumpy,
Thanks for great explanation! I understood alomost everything except the syntax.
I did little more research. Please look at this
Code:
int (*FunA[3])(float, char, char) = {one,two,three,four};
This is a array for 4 function pointers.
1. All these 4 function accept 3 values and their types are (float , char , char). Is it true?
2. All these 4 functins will return int. That means "FunA" can not have pointer of a function that returns float. Is it true?
3. If above two statements are true, What I understand is "arrary of function pointer is make sense when all functions are return same type and accepts same type". Is my understanding correct?
One more unrelated question
Waht is the difference of following two declaration
int *i;
int* i;
Again Thanks for your time!