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
2
______✨ HEY MATE ✨______
➡️Option (B) is the right answer ✔️
✌✌Hope it's help u ✌✌
➡️Option (B) is the right answer ✔️
✌✌Hope it's help u ✌✌
Answered by
28
B. swap the value of the two variables
Hope it helps u.
Hope it helps u.
Similar questions
English,
7 months ago
Computer Science,
7 months ago
Computer Science,
1 year ago
Computer Science,
1 year ago
Math,
1 year ago
Physics,
1 year ago