Friday 3 October 2014

Write four different C++ statements that each add 1 to integer variable x.

Leave a Comment

Solution

  1. x = x + 1;
  2. x += 1;
  3. ++x;
  4. x++;
If You Enjoyed This, Take 5 Seconds To Share It

0 Questions: