下面程序段输出的结果是什么class Sample{static void Swap(ref int x, ref int y){int tmp;tmp = x; x = y; y = tmp;}static void Main(string[] args){int a = 30, b = 40;Swap(ref a, ref b);Console.WriteLine(\{0},{1}\, a, b);Console.ReadKey();}}

时间:2022-11-15 21:24:33

相似题目