Report Bug

Qus

Consider the statement given below:

int a[5] = {1, 2, 3, 4, 5}, *p = a;
Which printf statement will print the value of fourth element of the array?
Qus

Consider the statement given below:

int a[5] = {1, 2, 3, 4, 5}, *p = a;
Which printf statement will print the value of fourth element of the array?


A. printf("%d ", *(p + 3));
B. printf("%d", p[4]);
C. printf("%d ", a + 3);
D. printf("%d ", *a + 3);


Solution
A. printf("%d ", *(p + 3));



Online Exam Quiz for One day Exam Online Typing Test CCC Online Test 2026 Best Computer Training Institute in Prayagraj (Allahabad) Best Java Training Institute in Prayagraj (Allahabad) Best Python Training Institute in Prayagraj (Allahabad) O Level Online Test in Hindi Best Website and Software Company in Allahabad