What is the output of this program?
#include
using namespace std;
int main()
{
int arr[] = {4, 5, 6, 7};
int *p = (arr + 1);
cout << arr;
return 0;
}
using namespace std;
int main()
{
int arr[] = {4, 5, 6, 7};
int *p = (arr + 1);
cout << arr;
return 0;
}
What is the output of this program?
#include
using namespace std;
int main()
{
int arr[] = {4, 5, 6, 7};
int *p = (arr + 1);
cout << arr;
return 0;
} Correct Answer address of arr
As we couted to print only arr, it will print the address of the array.
মোঃ আরিফুল ইসলাম
Feb 20, 2025