Which of the following swaps the values of someNums[0] and someNums[1], which currently contain the values 8 and 3, respectively?

A. someNums[0] = someNums[1]
someNums[1] = someNums[0]
B. temp = someNums[0]
someNums[0] = someNums[1]
C. temp = someNums[0]
someNums[0] = someNums[1]
someNums[1] = temp
D. someNums[0] = someNums[1]
someNums[1] = someNums[0]
someNums[1] = temp

Answer: C

Computer Science & Information Technology

You might also like to view...

Which network layer protocol matches a known Internet protocol (IP) address for a destination device to a Media Access Control (MAC) address?

a. IP. b. Address Resolution Protocol (ARP). c. Reverse Address Resolution Protocol (RARP). d. Internet Control Message Protocol (ICMP).

Computer Science & Information Technology

The _____________ provides explicit policy guidance for a project, and establishes priorities that determine the application of resources for treatment.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology