-1
void f(string &x);
..
f(string("hello1"));
...
f(new string("hello2"));
  1. string("hello1") が関数呼び出しかコンストラクター呼び出しかをコンパイラーはどのように認識しますか?
  2. hello1 と hello2 の違いは何ですか?
4

1 に答える 1