fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int arr[] = {3, 6, 2, 7, 8, 1};
  6. int num = 4[arr];
  7. cout << num << endl;
  8. return 0;
  9. }
Success #stdin #stdout 0s 5320KB
stdin
Standard input is empty
stdout
8