Question PRG-C-0013
MediumWhat is the output of this program?
#include <stdio.h>
int main(void) {
int a[] = {10, 20, 30, 40};
int *p = a;
printf("%d", *(p + 2));
return 0;
}
- A.
Error
- B.
20
- C.
Sign up free to see the answer and a step-by-step explanation.