can anyone tell me what are pointers to function ??? and how are they implemented ??
joshilay
0
Light Poster
Recommended Answers
Jump to Postcan anyone tell me what are pointers to function ??? and how are they implemented ??
in C, functions are defined just like variable.
The adress of a function can be assimiled to its adress in memory, so the following code is valid :
#include <stdio.h> …
Jump to PostPointer to function are the pointers which have the ability to call the function pointed to by them.As the ordinary pointers take the address of variable and can change the value pointed by them, the function pointer almost does the same.
#include <iostream> #include <string> using std::string; …
All 5 Replies
CrazyDieter
4
Junior Poster
Laiq Ahmed
42
Junior Poster
thandermax
0
Newbie Poster
Dave Sinkula
2,398
long time no c
Team Colleague
Laiq Ahmed
42
Junior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.