Quiz on Complex Data Types

This short quiz deals with complex data structures like arrays and structures.

1

What value would be stored in the variable res?

int arr[] = {4, 7, 10, 3, 19, 6, 5};
int res = arr[5] + arr[1];
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