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 i = 5; for (; Convert.ToBoolean(Convert.ToInt32(i)); Console.WriteLine(i--)) ; Console.ReadLine(); }

Select the correct option to test your answer:

More Computer Questions

The DoD model (also called the TCP/IP stack) has four layers. Which layer of the DoD model is equivalent to the Network layer of the OSI model? What type of data structure is a stack? In C#, which keyword is used to exit from a method without returning any value? What will be the output of the following C++ code? #include <iostream> using namespace std; int main () { char str[] = "Steve jobs"; int val = 65; char ch = 'A'; cout.width (5); cout << right; cout << val << endl; return 0; } Choose effective differences between 'Boxing' and 'Unboxing'.