Quiz on Complex Data Types

This short quiz deals with complex data structures like arrays.

1
int arr[] = {4, 7, 10, 3, 19, 6, 5};
int res = arr[5] + arr[1];
printf("%d", res);

What would be the printed value for res?

A)

23

B)

13

C)

26

D)

10

Question 1 of 30 attempted

Create a free account to access the full course.

By signing up, you agree to Educative's Terms of Service and Privacy Policy