CJCoding With Joseph
← Back to Question List

Select topics to narrow your question pool, then enable Random to jump to a random question matching your filters.

Topics:
C Quiz #25

Pointer Arithmetic Output

hardPointers

What does this program print?

📄 Code

1#include <stdio.h>
2 
3int main() {
4 int a[] = {10, 20, 30};
5 int *p = a;
6 printf("%d", *(p + 2));
7 return 0;
8}