prefix increment
class MainClass
{
public static void Main()
{
int length = 3;
int newLength = ++length;
System.Console.WriteLine("Prefix increment example");
System.Console.WriteLine("length = " + length);
System.Console.WriteLine("newLength = " + newLength);
}
}
Output Prefix increment example
length = 4
newLength = 4
|
HTML code for linking to this page:
Related in same category :
-
-
-
-
-
-
|