int variable assignment : int Calculation « Data Type « C# / CSharp Tutorial






using System;

class RightAssocApp
{
    static void Main(string[] args)
    {
        int a = 1;
        int b = 2;
        int c = 3;
   
        Console.WriteLine("a={0} b={1} c={2}", a, b, c);        
        a = b = c;
        Console.WriteLine("After 'a=b=c': a={0} b={1} c={2}", a, b, c);
    }
}








2.7.int Calculation
2.7.1.integers and arithmetic operators
2.7.2.int variable assignment
2.7.3.Overflowing an Integer Value
2.7.4.Bitwise AND of Integer
2.7.5.Comparing integers
2.7.6.Comparing the Prefix and Postfix Increment Operators
2.7.7.Using Binary Operators