Run this sample hope it will help u in understanding
<Function Pointer>
/*******************************Start****************/
#include <stdio.h>
int(*sum) (int a , int b);//Function pointer
int suma(int x,int y);
int sumb(int x , int y);
int main(int argc, char* argv[])
{
printf("Hello World!\n");
sum= suma;
sum(5,10);
sum = sumb;
sum(5,20);
return 0;
}
int suma(int x,int y)
{
return printf ("I am a\n");
}
int sumb(int x , int y)
{
return printf("I am b\n");
}
/*******************************End****************/
Regds
vinay
--- Arif Ali Saiyed <[EMAIL PROTECTED]> wrote:
>
> > Can anyone tell me briefly with an example what it
> is about?
>
> check this link
>
> http://www.function-pointer.org/
>
>
>
>
__________________________________
Do you Yahoo!?
Yahoo! Mail - You care about security. So do we.
http://promotions.yahoo.com/new_mail
------------------------ Yahoo! Groups Sponsor --------------------~-->
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/EbFolB/TM
--------------------------------------------------------------------~->
To unsubscribe : [EMAIL PROTECTED]
Yahoo! Groups Links
<*> To reply to this message, go to:
http://groups.yahoo.com/group/Programmers-Town/post?act=reply&messageNum=3639
Please do not reply to this message via email. More information here:
http://help.yahoo.com/help/us/groups/messages/messages-23.html
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/Programmers-Town/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/