i have an address of particular function and i want to know that how i can call that function from that address
Hi @KS_B, welcome to the forum.
Can you share a few lines of sample code to show what you are trying to do?
Here is a generic example of taking the address of a function and dereferencing it.
In particular, note that the dereferencing operation has low precedence. To do the dereferencing before the function call, you need to enclose the dereferencing operation in parentheses, to increase its precedence: (*fnptr)()
instead of *fnptr()
.
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.