Examveda

What will be the output of the following C# code?
class Output 
{
    public static void main(String args[]) 
    {
       try 
       {
           int a = 5;
           int b = 10;
           int c = b / a - 5;
           Console.WriteLine("Csharp");
       } 
   }
}

A. Csharp

B. sharp

C. C

D. Compile time error

Answer: Option D


Join The Discussion

Related Questions on Exception Handling in C Sharp