Vidyalelo
C# Programming · Q61

Arrays and Strings in C Sharp

Programming · C# Programming · question 61

Q61

Select the correct match of parameter declaration. static Void main(string[] args) int a = 5; int b = 6; float c = 7.2f; math (ref a, ref b, ref c); Console.WriteLine(a + " " + b + " " + c); static int math(/*add parameter declaration */) a += b; b *= (int)c; c += a * b; return 0;

A.
ref int a, int b, ref float c
B.
ref int a, ref float c, ref int b
C.
ref int a, ref int b, float c
D.
ref int a, ref int b, ref float c
Answer

Answer: Option D

Solution

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