

MCQOPTIONS
Saved Bookmarks
1. |
What will be the output of the given code?
class UnsafeCode { unsafe static void Main() { int a = 2; int b = 4; int *a1 = &a; int *b1 = &b; Console.WriteLine(*a1 + *b1); } } |
A. | 6 |
B. | Print garbage value |
C. | Print -6 |
D. | Print address of b + a |
Answer» B. Print garbage value | |