
Here,
$\texttt{int (*p)[3] = a;}$
means $\texttt{p}$ is a pointer to an array of $\texttt{3}$ integers.
So, $\texttt{p}$ points to the first row of the 2D array.
The array is:
$\texttt{a[0][0] = 1}$, $\texttt{a[0][1] = 2}$, $\texttt{a[0][2] = 3}$
$\texttt{a[1][0] = 4}$, $\texttt{a[1][1] = 5}$, $\texttt{a[1][2] = 6}$
Now,
$\texttt{**p}$
means first row, first element.
So,
$\texttt{**p = a[0][0] = 1}$
Next,
$\texttt{((p + 1) + 2)}$
Here, $\texttt{p + 1}$ moves to the second row.
So,
$\texttt{*(p + 1)}$ represents row $\texttt{1}$.
Then,
$\texttt{*(p + 1) + 2}$ points to $\texttt{a[1][2]}$.
So,
$\texttt{((p + 1) + 2) = a[1][2] = 6}$
Next,
$\texttt{*(*p + 1)}$
Here, $\texttt{*p}$ represents the first row.
So,
$\texttt{*p + 1}$ points to $\texttt{a[0][1]}$.
Therefore,
$\texttt{*(*p + 1) = a[0][1] = 2}$
$\therefore$ Output : $\texttt{1 6 2}$
Answer: B