int x = 128, y = 110;
do {
if (x > y) x = x - y;
else y = y - x;
} while (x != y);
printf("%d", x);
Consider ar as a 3-dimensional array declared as:
data_type ar[a][b][c];
Here, the array element ar[m][n][o] can be represented in pointer form as:
*(*(*(ar + m) + n) + o)
Step-by-step understanding:
ar is a pointer to the first 2D array ar[0].ar + m moves the pointer to the mth 2D array → ar[m].*(ar + m) gives the address of the first 1D array inside ar[m].*(ar + m) + n moves to the nth 1D array → ar[m][n].*(*(ar + m) + n) gives the address of the first element of that 1D array.*(*(*(ar + m) + n) + o) finally gives the element ar[m][n][o].✅ Final Answer: *(*(*(ar + m) + n) + o)
Online Test Series,
Information About Examination,
Syllabus, Notification
and More.
Online Test Series,
Information About Examination,
Syllabus, Notification
and More.