πŸ“Š C#
Q. What will be the output of the following C# code?
Code:
public static void Main(string[] args)
 {
     double ZERO = 0;
     Console.WriteLine("RESULT OF DIVISION BY ZERO IS :{0}",  (0 / ZERO));
     Console.ReadLine();
 }
  • (A) 1
  • (B) exception argument is thrown
  • (C) NaN
  • (D) 0
πŸ’¬ Discuss
βœ… Correct Answer: (C) NaN

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
226
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ravi Chauhan
Publisher
πŸ“ˆ
92%
Success Rate