Multiple choice technology programming languages

The expression: i++ * ++i; is not well defined.

  1. True

  2. False

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

The expression i++ * ++i modifies the variable i twice without an intervening sequence point, which is undefined behavior in C (before C11) and C++. The compiler is free to evaluate these operations in any order, leading to unpredictable results. Such expressions should always be avoided in production code.