I'm facing the problem to solve this quiz in C#. Please help!! And provide some answer. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

I'm facing the problem to solve this quiz in C#. Please help!! And provide some answer.

static __ Swap ____(ref T a, ref T b) { T temp = a; a = b; b = ___ ; ____ a; } <T> a T return b temp

18th Jul 2019, 3:52 PM
katherine Rapalo
1 Answer
+ 9
Try this: static int Swap <T> (ref T a, ref T b){ T temp = a; a = b; b = temp; return a; }
18th Jul 2019, 4:02 PM
Zhenis Otarbay
Zhenis Otarbay - avatar