0

The output is coming out to be 150. How?

    include <iostream>
    using namespace std;

    int main() {
    int j, i=3;
    j=(++i)*(++i)*(++i);
    cout<<j;
    return 0;
    }
Nikita Gupta
  • 9
  • 1
  • 3
  • Could we stop providing/explaining this sort of quices/tutorials? There're *literally* hundreds of examples of *almost* this exact same question all over SO. – 3442 Sep 20 '15 at 06:54
  • possible duplicate of [Undefined behavior and sequence points](http://stackoverflow.com/questions/4176328/undefined-behavior-and-sequence-points) – 3442 Sep 20 '15 at 06:59

0 Answers0