I declared two different char * and initialised them to the same string.
but i thought they would be pointing to the different addresses , but they pointed to the same addresses..
How come this happens?
char* arr = "abcdefgh";
char* brr = "abcdefgh";
cout<<arr<<endl;
cout<<brr<<endl;
the values printed out were same.. How this is happening? Plz explain