Computer Science, asked by poojagalhotra2645, 1 year ago

Consider the following code snippet
[x,y]=[y,x];
What is the result of the above code snippet?
A.Throws exception
B.Swap the value of the two variables
C.Flashes an error
D.Creates a new reference object

Answers

Answered by Neeraj723
2
______✨ HEY MATE ✨______

➡️Option (B) is the right answer ✔️


✌✌Hope it's help u ✌✌
Answered by Anonymous
28
B. swap the value of the two variables

Hope it helps u.
Similar questions