English

If i = 5 before the assignment i := i - 1 after the assignment, the value of i is ______

Advertisements

Question

If i = 5 before the assignment i := i - 1 after the assignment, the value of i is ______

Options

  • 5

  • 4

  • 3

  • 2

MCQ
Fill in the Blanks
Advertisements

Solution

If i = 5 before the assignment i := i - 1 after the assignment, the value of i is 4.

shaalaa.com
Abstraction
  Is there an error in this question or solution?
Chapter 6: Specification and Abstraction - Evaluation - Section - A [Page 86]
Advertisements
Share
Notifications



      Forgot password?
Use app×