Why its outpit is this please explain its o/p?

int a={1,2,3,4,5};
int l=&a[0];
int r
=&a[(sizeof(a)/sizeof(int))-1];
cout<<l<<r<<*l<<*r;

Pointer variable l will store the base address of the array.
Pointer variable r will store the address of last element in the array.
So accordingly output will be:
address l address r 15

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.