Find the Output: Postfix and prefix increments

  • Option : B
  • Explanation : x++ compares the old value 3 with 3, which is false, then makes x equal to 4. ++x next makes x equal to 5 before comparing; 5 > 4 is true, so B5 is printed.