Given the following code:
int arr[] = { 0, 1, 1, 2, 3, 5, 8, 13, 21 };
int n = 6;
n = arr[arr[n] / 2];
std::cout << n;
Write what will be output to the console
Given the following code:
int arr[] = { 0, 1, 1, 2, 3, 5, 8, 13, 21 };
int n = 6;
n = arr[arr[n] / 2];
std::cout << n;
Write what will be output to the console
Create a free account to access the full topic