• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 213
  • Last Modified:

address of function

how do i assign the address of a function to a function pointer?
0
cfa75
Asked:
cfa75
1 Solution
 
imladrisCommented:
Declare the pointer with something like:

int (*funcptr)(int);

assign it with something like:

funcptr=actfunc;

where actfunc is the name of some function.

0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now