Question
Which of the following job is done by the instruction ++*p for an integer pointer p?
Answer: Option A
Was this answer helpful ?
class UnsafeCode
{
unsafe static void Main()
{
int n = 10;
int* p = &n;
Console.WriteLine(*p);
}
}
Output : 10 + 1 = 11.
Was this answer helpful ?
Submit Solution