English, asked by rishilaugh, 1 year ago

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

Answers

Answered by Satwatneyearthian
0
two variables are need to swap the contents
Answered by poojan
4
The minimum number of temporary variables needed to swap the contents of two variable is Zero (0)


As, In variables a ,b 

a=a+b; 

b=a-b; 

a=a-b; 

or 

a=a×b; 
b=a÷b; 
a=a÷b; 
So, no temporary variables is needed

Similar questions