Which of the following is not correct in C++?

KVS TGT/PGT 2018Kendriya Vidyalaya Sangathan 2018

Which of the following is not correct in C++?

  1. A.

    x -= 2; is the same as x = x - 2;

  2. B.

    x *= 2; is the same as x = x * 2;

  3. C.

    x %= 2; is the same as x = x/2

  4. D.

    x /= 2; is the same as x = x/2

Attempted by 833 students.

Sign up free to check your answer

Sign up free

Explore the full course: Rssb Senior Computer Instructor

Loading lesson…