Given the C++ instructions below, add the necessary instructions to swap the contents of the variables num1 and num2.
?
int num1 = 10;
int num2 = 15;
int temp = 0;
What will be an ideal response?
temp = num1;num1 = num2;num2 = temp;?OR?temp = num2;num2 = num1;num1=temp;
Computer Science & Information Technology
You might also like to view...
A customer wishes to network several computers throughout a large warehouse containing numerous metal shelves and concrete walls. The computers are at least 175 meters (574 feet) apart. Which of the following media types should be recommended for the customer using only a single switch?
A. Fiber optic B. Wireless C. CAT5e D. CAT3
Computer Science & Information Technology
What are Sorting Layers used for?
What will be an ideal response?
Computer Science & Information Technology