Home / MCQ Bank / Computer
Computer Control Flow Statements In C Sharp Difficulty: Medium

What will be the output of the following C# code? static void Main(string[] args) { int x = 10; do { Console.WriteLine( x++); } while(Convert.ToBoolean(5) && Convert.ToBoolean(4) && Convert.ToBoolean(3) && Convert.ToBoolean(2) && Convert.ToBoolean(1) && Convert.ToBoolean(0)); Console.ReadLine(); }

Select the correct option to test your answer:

More Computer Questions

How can you pass an array to a function in C? Kadane's algorithm is used to find . . . . . . . . The MySQL clients are linked with . . . . . . . . What will be the output of the following C code? #include <stdio.h> struct student { char *name; }; struct student s[2], r[2]; void main() { s[0].name = "alan"; s[1] = s[0]; r = s; printf("%s%s", r[0].name, r[1].name); } Which function in R language is used to find out whether the means of 2 groups are equal to each other or not?