Examveda

Which of the conversions are valid for the following C# code?
static void Main(string[] args)
{
    int a = 22;
    long b = 44;
    double c = 1.406;
    b = a;
    c = a;
    a = b;
    b = c;
}

A. c = a, b = c

B. a = c, b = a

C. b = a, c = a

D. All of the mentioned

Answer: Option A


Join The Discussion

Related Questions on Basic Syntax and Data Types in C Sharp