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 = 0; do { x++; if (x == 5) { x++; continue; break; } Console.WriteLine(x + " "); } }while (x < 10);

Select the correct option to test your answer:

More Computer Questions

Suffix array of the string "statistics" is . . . . . . . . In data ethics, what is "data sovereignty" in the context of individuals' control over their personal information? In HTML Audio/Video DOM, __________ sets or returns the volume of the audio/video. Which of the following is an antivirus? What will be the output of the following C code? #include <stdio.h> #include <stdarg.h> int f(char c, ...); int main() { char c = 97, d = 98; f(c, d); return 0; } int f(char c, ...) { va_list li; va_start(li, c); char d = va_arg(li, int); printf("%c\n", d); va_end(li); }