Nguyễn Hồng Yến
New member
What will be the output of the following C++ code?
A. 4
B. 5
C. 6
D. 7
Code:
#include <iostream>
using namespace std;
int main()
{
int arr[] = {4, 5, 6, 7};
int *p = (arr + 1);
cout << *p;
return 0;
}
B. 5
C. 6
D. 7