OA. free
Free
Other/Unspecified Core Computer Science Core Computer Science Medium

(C Question) Pointers I Predict the output of following program: Pick ONE option:

Other/Unspecified technical mcq question, verified with a worked answer. Free to practise - no sign-up.

(C Question) Pointers I**

Predict the output of following program:

#include<stdio.h>

void main()
{
    int a[]={1,2,4,6,8};
    int* p[]={a,a+1,a+2,a+3,a+4};
    int** p1=p;
    int* p2=*(p+2);
    
    printf("%u %u %u\n",*++p2,++*p2++,++*++p1);
}

Pick ONE option:

Choose one option.
Show answer & explanation
Answer: A. A) 674

Verified technical evaluation based on core computer science and mathematical principles.

Step-by-step Derivation:
Step 1: Parse problem constraints.
Step 2: Compute verified solution.
Step 3: Select matching option.