Which of the following job is done by the instruction ++*p for an integer pointer p?

a) increment value contained at address p
b) increment address contained in p
c) Both increment value contained at address p and increment address contained in p
d) neither increment value contained at address p nor increment address contained in p

1 thought on “Which of the following job is done by the instruction ++*p for an integer pointer p?”

  1. a
    Explanation:
    class UnsafeCode
    {
    unsafe static void Main()
    {
    int n = 10;
    int* p = &n;
    Console.WriteLine(*p);
    }
    }
    Output :

    10 + 1 = 11.

Leave a Comment