MCQOPTIONS
Saved Bookmarks
| 1. |
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 decelaration */) { 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» E. | |