以下代码是一个程序的部分代码,能够正确执行,输出的结果是( )
int arr[5] = {1, 2, 3, 4, 5}; int p = arr[1]; cout << (p + 2) << endl;
1
2
3
4