What will be the output of the following code?
#include <iostream> using namespace std; int main() { int arr[5] = {1, 2, 3, 4, 5}; cout << arr[2]; return 0; }
1
2
3
4
This question is part of this quiz :