Hi All,
I'm learning Pointers to functions in C.But I have some doubts regardign the same.I would be v.happy and thankful if somebody can help me out on my pbm
The problem is mentioned below:
------------------------------------------
Consider I have 5 different functions which returns different type and takes different arguements also.
Eg :
int aaa(int x);
void bbb(int x,int y, int z);
void ccc(void);
void ddd(char *x,char *y,char *z);
void eee(UINT8 x);
And these are all some operations when the user presses some commands,
Eg:
Commands = "command1","com mand2","command 3","command4"," command5"
How will i use the fucntion pointers to execute the corresponding function with their arguements?
If possible, if somebody can reply to me ASAP.
Thanks in advance,
Sowmi
I'm learning Pointers to functions in C.But I have some doubts regardign the same.I would be v.happy and thankful if somebody can help me out on my pbm
The problem is mentioned below:
------------------------------------------
Consider I have 5 different functions which returns different type and takes different arguements also.
Eg :
int aaa(int x);
void bbb(int x,int y, int z);
void ccc(void);
void ddd(char *x,char *y,char *z);
void eee(UINT8 x);
And these are all some operations when the user presses some commands,
Eg:
Commands = "command1","com mand2","command 3","command4"," command5"
How will i use the fucntion pointers to execute the corresponding function with their arguements?
If possible, if somebody can reply to me ASAP.
Thanks in advance,
Sowmi
Comment