Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
簡単なコード、例:
void* print_my_address() { printf("%p\n", .../* get the execution address of print_my_address */) }
ありがとう!
PS: gcc v4.7 コンパイラでアドレスを取得できますか?
他の通常の変数に対して行うのと同じ方法:
void print_my_address() { printf("%p\n", &print_my_address); }