Multiple choice technology programming languages

How can pointers be used in C#

  1. No,pointers can not be used here

  2. by using unsafe block

  3. by compiling using /unsafe option in command line only

  4. Both B and C

  5. None

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

Pointers in C# can only be used within unsafe blocks, and the code must be compiled with the /unsafe option either in the IDE or command line. Both conditions are required, making 'Both B and C' correct.