Does the address of a function change per runtime [duplicate]
问题 This question already has answers here : Why does the address of a function change with every run? (4 answers) Closed 4 days ago . I'm writing something in c++ where I want to read text from a file that indicates correlations between Strings and Functions I have declared in my program. For example the file could read: sin:sin PI:getPi +:add I wanted the code to take this and create a hash table or vector of String and Function Pointer data structures. Unfortunately, I realize that code would