MCQOPTIONS
Saved Bookmarks
| 1. |
What will be the output of the given code snippet? class UnsafeCode { unsafe static void Main() { string str = "this is a test"; fixed (char* p = str) { for (int i = str.Length-1 ;p[i] != 0 ;i--) Console.Write(p[i]); } Console.ReadLine(); } } |
| A. | Test a is this |
| B. | Compile time error |
| C. | Tset a si siht |
| D. | Run time error |
| Answer» D. Run time error | |