What's the difference between cout<<cout and cout<<&cout in c++?

后端 未结 5 1758
余生分开走
余生分开走 2020-12-06 02:59

This might be a beginner question and understanding how cout works is probably key here. If somebody could link to a good explanation, it would be great. cout<

5条回答
  •  借酒劲吻你
    2020-12-06 03:20

    cout << &cout is passing cout the address of cout.

    cout << cout is printing the value of implicitly casting cout to a void* pointer using its operator void*.

提交回复
热议问题