+ 1

int (*fp)(char*); in the above instruction, What is fp and char and how are they interlinked:

22nd May 2017, 10:34 AM
U L Knw Me soon😉😋
U L Knw Me soon😉😋 - avatar
3 RĂ©ponses
+ 4
the fp is the variable defined as pointer to function.The variable can keep the pointer to function which has one parameter (pointer to char ) and it returns integer value.i.e. : int foo(char * pInData); fp = foo; fp("hello foo");
22nd May 2017, 11:53 AM
Highman
Highman - avatar
+ 4
tnx highman i got it👍😊
22nd May 2017, 12:05 PM
U L Knw Me soon😉😋
U L Knw Me soon😉😋 - avatar
+ 2
you are welcome;))
22nd May 2017, 12:07 PM
Highman
Highman - avatar