109k views
2 votes
.If y has the value 5 what will be the value of the variable y after the following piece of C++ is executed?

if (y > 0) y += 2;
A) 1,2
B) 2,7
C) 3 no others answer
D) 4,5

User Idjaw
by
8.7k points

1 Answer

1 vote
Option D) is the answer
User Stratwine
by
8.4k points

No related questions found