QuestionAnswer
Here I am discussing question answer. Friends, if you like then tell me comment section.
Wednesday, 23 January 2019
How do I initialize a pointer to a function
How do I initialize a pointer to a function?
Answer:
This is the way to initialize a pointer to a function
void fun(int a)
{
}
void main()
{
void (*fp)(int);
fp=fun; fp(1);
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment