I was using the following to get a memory address for functions pointers to prevent ambiguity, but unsure if this correct
but this also works, but displays a different value, and not sure which is correctCode:void(*f)(void); std::cout << "Address: " << &(*f) << '\n';
Thank you for your assistance.Code:void(*f)(void); std::cout << "Address: " << &(&(*f)) << '\n'; //Just thought about it, but this one is also the same as &(f) I think