Question: using static System.Console; class Reverse4 { static void Main(string[] args) { int a = 23, b = 45, c = 55, d = 67; WriteLine(Before

using static System.Console; class Reverse4 { static void Main(string[] args) { int a = 23, b = 45, c = 55, d = 67; WriteLine("Before Reverse - a: " + a.ToString() + ", b: " + b.ToString() + ", c: " + c.ToString() + ", d: " + d.ToString()); Reverse(ref a, ref b, ref c, ref d); WriteLine("After Reverse - a: " + a.ToString() + ", b: " + b.ToString() + ", c: " + c.ToString() + ", d: " + d.ToString()); } public static void Reverse(ref int a, ref int b, ref int c, ref int d) { int temp = a; a = d; d = temp; temp = b; b = c; c = temp; } }

using static system Console

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!