The following two functions P0 and P1 that share a variable X with an initial value of 1 execute concurrently.

P0()

{

Y = X + 1

X = Y * 3

}

P1()

{

Z = X - 1

X = Z + 1

}

The addition of the smallest and largest values that X can possibly take after the execution is ______.

Enter numerical value using the virtual keypad. Round off where necessary.

Sponsored

hivanix.in

Visit

This quiz is brought to you by hivanix.in

🌐 Web App Development

Quick Navigation