clintonkinara
clintonkinara clintonkinara
  • 21-11-2021
  • Computers and Technology
contestada

write a function to swap two variables using a third variable ​

Respuesta :

mubashirhashmi2020 mubashirhashmi2020
  • 21-11-2021

Answer:

Explanation:

Assign var1 value to a temp variable: temp = var1.

Assign var2 value to var1: var1 = var2.

Assign temp value to var2: var2 = temp.

Answer Link

Otras preguntas

Some have said that the Palestinian- Israeli conflict represents the struggle of right against right. Explain why you agree or disagree.
A scientist was studying a population of fish in a pond over a period of 10 years. He observed that the population increased each year for 3 years, an
How did the writers of the U.S. Constitution put into practice the idea of separation of powers? A system of checks and balances?
How did the Japanese plan to catch the European colonial powers and the United States by surprise?
A 250 ml bottle of water treatment liquid will treat up to 625 litres of water. Given that 1 cubic meter=1000 litres, how much treatment liquid is needed to tre
How do the mass media spread popular culture across the world?
What were the homelands in South Africa?
x^2 -3x + 0 = 0 Factor and solve
Which of the following threats did soldiers face in the trenches? fire starvation collapse disease
What areas of medicine have benefited from scientific and technological developments?