Select the correct option to test your answer:
Computer
Control Flow Statements In C Sharp
Difficulty: Medium
What will be the output of the following C# code? static void Main(string[] args) { char ch = Convert.ToChar('a' | 'b' | 'c'); switch (ch) { case 'A': case 'a': Console.WriteLine("case A|case a"); break; case 'B': case 'b': Console.WriteLine("case B|case b"); break; case 'C': case 'c': case 'D': case 'd': Console.WriteLine("case D|case d"); break; } Console.ReadLine(); }
More Computer Questions
What is the output of the following code? #include<stdio.h> int recursive_sum(int n) { if(n == 0) return 0; return n + recursive_sum(n - 1); } int main() { int n = 0; int ans = recursive_sum(n); printf("%d",ans); return 0; }
Which among the following is referred as an array of pointers?
The advantage of optimistic locking is that:
Which of the following is a group of one or more attributes that uniquely identifies a row?
What does the grep method do in Ruby enumerators?