C++ Pointers & Functions Question: Download Questions PDF
The output of this program?
#include <iostream>
using namespace std;
int main()
{
int arr[] = {4, 5, 6, 7};
int *p = (arr + 1);
cout << *p;
return 0;
}
a) 4
b) 5
c) 6
d) 7
Answer:
b) 5
Download C++ Pointers & Functions Interview Questions And Answers
PDF