how-to-write-narrative-essay

Programming

December 14, 2020

Which of the following statements successfully swap the contents of an array at index 3 and index

4?

 

A.  values( 3 ) = values( 4 )

      values( 4 ) = values( 3 )

 

B.  values( 4 ) = values( 3 )

     values( 3 ) = values( 4 )

 

C.  Dim temp As Integer = values( 3 )

     values( 3 ) = values( 4 )

     values( 4 ) = temp;

 

D.  Dim temp As Integer = values( 3 )

     values( 3 ) = values( 4 )

     values( 4 ) = values( 3 )