Suppose I have this code section
char *ptr[] = {"Hi", "Alexa"};
std::cout<<++*ptr<<std::endl;
std::cout<<++*ptr<<std::endl;
std::cout<<++*ptr<<std::endl;
std::cout<<++*ptr<<std::endl;
The out put is
i Alexa lexa
Why is there a space between "i" and "Alexa"? And if I change" endl" to "\n", there won't be any space.