Home / MCQ Bank / Computer
Computer Arrays And Strings In C Sharp Difficulty: Medium

What will be the output of the following C# code? static void Main(string[] args) { object[] a = {" 1 ", 4.0f, " harsh "}; fun(a); Console.ReadLine(); } static void fun(params object[] b) { for (int i = 0; i < b.Length - 1; i++) Console.WriteLine(b[i] + " "); }

Select the correct option to test your answer:

More Computer Questions

What is the primary benefit of using NiFi's "SplitContent" processor in a data flow? Which of the following is not a storage class in C? What will be the output of the following Python code? l=[-2, 4] m=map(lambda x:x*2, l) print(m) Which command is commonly used to run RSpec tests from the command line? Determine Output: void main() { int i=0; for(;i++;printf("%d", i)); printf("%d", i); }