i got a question about "cout"
Program 1:
#include <iostream.h>
int main()
{
char nx[]="hello";
cout << nx << "\n";
return 0;
}
Program 2:
#include <iostream.h>
int main()
{
int nx[]={1,2,3,4,5};
cout << nx << "\n";
return 0;
}
Why in program 1,the output result is "hello"
but program 2 output the memory address?