Vidyalelo
C# Programming · Q85

Arrays and Strings in C Sharp

Programming · C# Programming · question 85

Q85

What will be the output of the following C# code? static void Main(string[] args) int[] x = 65, 66, 67, 68, 69, 70; fun(x); Console.ReadLine(); static void fun(params int[] b ) int i; for (i = 5; i > 0 ; i--) b[i] = b[i] + 32; Console.WriteLine(Convert.ToChar(b[i]));

A.
A, B, C, D, E, F
B.
F, E, D, C, B, A
C.
f, e, d, c, b
Answer
D.
b, c, d, e, f

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board