Is there a way to explicitly define the address pointed to by a function
pointer without using the address-of operator? Such as:
void (*ptrFunction)( void) = NULL;
void funcA(void); //Address of this function is 0x0040010A
int main(void) {
ptrFunction = &funcA; //this works.
ptrFunction = 0x0040010A; //this doesn't, and I want it to.
return 0;
}
pointer without using the address-of operator? Such as:
void (*ptrFunction)( void) = NULL;
void funcA(void); //Address of this function is 0x0040010A
int main(void) {
ptrFunction = &funcA; //this works.
ptrFunction = 0x0040010A; //this doesn't, and I want it to.
return 0;
}
Comment