Discuss Forum

1. Let x be an integer which can take a value of 0 or 1. The statement if (x == 0) x =1 ; else x =0 ; is equivalent to which one of the following ?

  • A. x = 1 +x ;
  • B. x = 1 +x ;
  • C. x = 1 +x ;
  • D. x = 1 +x ;

Answer: Option B

Explanation:


Post your comments here:

Name:
Mobile:
Email:(Optional)

» Your comments will be displayed only after manual approval.