ExamVeda
Login
Home
Basic Syntax and Data Types in C Sharp
?

For the following C# code select the relevant solution for conversion of data type.
static void Main(string[] args)
{
    int num1 = 20000;
    int num2 = 50000;
    long total;
    total = num1 + num2;
    Console.WriteLine("Total is : " +total);
    Console.ReadLine();
}

Answer & Solution
Correct Answer: Option B
Let's discuss the solution. Join the discussion
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.