C/C++の宿題片付けます 144代目
■ このスレッドは過去ログ倉庫に格納されています
0062デフォルトの名無しさん
2010/12/06(月) 09:15:251.
一般的かどうかは知らない
しかしながら、僕は画像(pixmapとか)を想定していたからわりと普通に思えた
2.
ノー、全てという保証はない、例えば、俺様環境とか
しかしながら、規格では短絡になることが決められている
ISO/IEC 9899:1999 (E)
6.5.13 Logical AND operator
4 Unlike the bitwise binary & operator, the && operator guarantees left-to-right evaluation;
there is a sequence point after the evaluation of the first operand. If the first operand
compares equal to 0, the second operand is not evaluated.
■ このスレッドは過去ログ倉庫に格納されています