asked 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

asked
User Idjaw
by
8.4k points

1 Answer

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

No related questions found

Welcome to Qamnty — a place to ask, share, and grow together. Join our community and get real answers from real people.