• 2021-04-14
    下面程序段输出的结果是什么 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(); } }