What will be the output of the following C++ code? 1. #include <iostream> 2. using namespace std; 3. int main() 4. { 5. int arr[] = {4, 5, 6, 7}; 6. int *p = (arr + 1); 7. cout << *p; 8. return 0; 9. } a) 4 b) 5 c) 6 d) 7
What will be the output of the following C++ code? 1. #include <iostream> 2. using namespace std; 3. int main() 4. { 5. int arr[] = {4, 5, 6, 7}; 6. int *p = (arr + 1); 7. cout << *p; 8. return 0; 9. } a) 4 b) 5 c) 6 d) 7
Share
b) 5