#include<iostream>
using namespace std;
int main()
{
int arr[]={1,2,3};
cout<<"Base Address of integer array:"<<arr;
char ar[]="abcd";
cout<<"\n";
cout<<"Base address of character array:"<<ar;
}
In case of integer arrays the array name will give you the base address of that array(Please refer line no.6, in the above program). But I don't understand why this is not working for character array.