CJCoding With Joseph
15free / daySign inCreate account
Back to Multiple Choice Quiz

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

Topics

Pointer Arithmetic Output

C quiz · Question 25
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}