Mega Code Archive

 
Categories / C# Tutorial / Operator
 

Using the Pre-Increment Operator

class MainClass {   static void Main()   {     int count;     int result;     count = 0;     result = ++count;     System.Console.WriteLine("result = {0} and count = {1}", result, count);   } }