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

Array Element Output

C quiz · Question 21
mediumArrays

What does this program print?

Code

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