オーバーロードの話 void f(int x); void f(string* message); f(0); この場合どちらのf()が呼ばれるでしょうか?的な話。 (intのほうが呼ばれます。なぜなら0はintだから) では f(NULL) はどうでしょうか? これはNULLの型によって呼び出されるものが違う…
Quote saved.
Login to quote this blog
Failed to save quote. Please try again later.
You cannot quote because this article is private.