What is the output of the following code?
using System; class MainClass { public static void Main(string[] args) { int c = 5 / 0; Console.WriteLine(c); } }
int c = 5 / 0;//a compile-time error
Dividing by the literal or constant 0 generates a compile-time error.