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.
関数が代入のために呼び出されたかどうかを知るテストまたは何らかの方法があるかどうか疑問に思っていました。つまり、違いを伝えることです...
int x = getX();
そしてただ、
getX();
これには実用的な用途はありませんが、知っておくとよいと思いました。
可能ですか?