subject

2’

Increment & Decrement – Find The Bugs!
The following code is intended to increment / decrement A and B until A is equal to X and B is equal to Y. Find the bugs!

(int a, int b, int x, int y)

{

while (a != x && b != y)

{

if (a > x)

{

a++;

}

else

{

a--;

}

if (b > y)

{

b++;

}

else

{

b--;

}

}

}

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 24.06.2019 00:00
The gene form of a trait is called a(n) 
Answers: 2
question
Computers and Technology, 24.06.2019 12:30
Why does the pc send out a broadcast arp prior
Answers: 1
question
Computers and Technology, 24.06.2019 22:30
What are the 4 basic items that are traded throughout the world?
Answers: 1
question
Computers and Technology, 25.06.2019 01:00
When a new name is registered on the internet, the process can take two hours to four hours four hours to three days two hours to two days one hour to eight hours
Answers: 1
You know the right answer?
2’

Increment & Decrement – Find The Bugs!
The following code is intended to...
Questions
question
Arts, 09.10.2020 04:01
question
Chemistry, 09.10.2020 04:01
question
Mathematics, 09.10.2020 04:01
question
Chemistry, 09.10.2020 04:01
Questions on the website: 13722362