You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
int main()
{
// Defining an array
int arr[ ] = { 1, 2, 3, 4 };
// Define a pointer
int* ptr = arr;
// Printing address of the arrary using array name
cout << "Memory address of arr: " << &arr << endl;
// Printing address of the array using ptr
cout << "Memory address of arr: " << ptr << endl;
return 0;
}
The text was updated successfully, but these errors were encountered:
#include < iostream >
using namespace std;
int main()
{
// Defining an array
int arr[ ] = { 1, 2, 3, 4 };
}
The text was updated successfully, but these errors were encountered: