Home / MCQ Bank / Computer
Computer Classes And Objects In C Sharp

What will be the output of the following C# code? enum days:int { sunday = -3, monday, tuesday } Console.WriteLine((int)days.sunday); Console.WriteLine((int)days.monday); Console.WriteLine((int)days.tuesday);

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option C • -3 -2 -1

Related Computer Questions

Which of the following is/are of Text nodes? In order to restrict a variable of a class from inheriting to subclass, how variable should be declared? What is the average case complexity of QuickSort? Which element is used to draw graphics and animations? Computer program is also known as ___________?