Computer Science, asked by zayn64, 11 months ago

int x=1; y=x++; string s= x+y++" "+x+y; .what is the vale of s?​

Answers

Answered by advancecomputerpnp
1

Answer:

s = x+y++" "+x+y

given value:

x=1

y =x++;

Explanation:

put the value of x and y

hence by putting the value

a.t.q

       s = 1 +x++" "+x+y

        s = 1 + 1 ++" " 1+ x++

        s = 1 + 1 ++" " 1+ 1 ++

i.e

             s = 4++

Similar questions