Sail E0 Webinar
Question
Which of the following job is done by the instruction ++*p for an integer pointer p?
Options:
A .  increment value contained at address p
B .  increment address contained in p
C .  Both 'a' and 'b'
D .  Neither 'a' nor 'b'
Answer: Option A


class UnsafeCode

{

unsafe static void Main()

{

int n = 10;

int* p = &n;

Console.WriteLine(*p);

}

}

Output : 10 + 1 = 11.



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers