Q The minimum number of temporary variables needed to swap the contents of two variables is

  • A 1
  • B 3
  • C 4
  • D 0

MCQs Details

A minimum number of temporary variable needed to swap the contents of 2 variable is 0. The swapping can easily be done without any other temporary variable.