MCQOPTIONS
Saved Bookmarks
| 1. |
What is the output of the following set of code? static void Main(string[] args) { int x = 8; int b = 16; int C = 64; x /= b /= C; Console.WriteLine(x + " " + b+ " " +C); Console.ReadLine(); }static void Main(string[] args) { int a = 5; int s = 0, c = 0; Mul (a, ref s, ref c); Console.WriteLine(s + "t " +c); Console.ReadLine(); } static void Mul (int x, ref int ss, ref int cc) { ss = x * x; cc = x * x * x; } |
| A. | 125 25 |
| B. | 25 125 |
| C. | Compile time error |
| D. | 0 0 |
| Answer» C. Compile time error | |