Jump to content
ChetanaSforum

sivaprasadreddys

Members
  • Content count

    1
  • Joined

  • Last visited

Community Reputation

0 Neutral

About sivaprasadreddys

  • Rank
    Newbie
  1. sivaprasadreddys

    c aptitude plz explain

    Ans: x=57 y=94Explanation: x = y++ + x++; Here y++ post increment means y++=35 after the y++ increment y becomes 36; x++ "" "" "" ---------------- x++=20 after the x++ increment x becomes 55 so result of step 1: x=55 After step 1 : x=56, y=36 step 2: y= ++y + ++x; Here x and y both are pre-increments so ++y = 37, ++x=557 y = 57 + 37 = 94
×