ขนาดวิดีโอ: 1280 X 720853 X 480640 X 360
แสดงแผงควบคุมโปรแกรมเล่น
เล่นอัตโนมัติ
เล่นใหม่
We could've defined constexpr int I = 1;constexpr int J = 1;leading to preprocessor not seeing the definitions while evaluating #if I + J == 2u to get the same "2 Not 2" output. Getting "2 2" is trivial.
We could've defined
constexpr int I = 1;
constexpr int J = 1;
leading to preprocessor not seeing the definitions while evaluating #if I + J == 2u to get the same "2 Not 2" output. Getting "2 2" is trivial.