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

Summing Array Elements

C quiz · Question 40
mediumArrays

What does this code print?

Code

1int a[] = {10, 20, 30, 40};
2printf("%d", a[2] + a[0]);