• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 217
  • 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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Simple Misconfiguration =Network Vulnerability

In this technical webinar, AlgoSec will present several examples of common misconfigurations; including a basic device change, business application connectivity changes, and data center migrations. Learn best practices to protect your business from attack.

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