int*跟char*的指针

int*和char*的指针
C/C++ code
#include<iostream>
using namespace std;
int main()
{int *p;
cout <<p <<endl;
system("pause");
}

这个输出正常;
C/C++ code
#include<iostream>
using namespace std;
int main()
{int *p;
cout <<p <<endl;
system("pause");
}

这个就不正常了,为什么?

------解决方案--------------------
两个代码一样呀
------解决方案--------------------
cout << char *它会认为你要输出字符串,而不是指针的值,就是乱七八糟的东西
------解决方案--------------------
2个代码一模一样 哥用放大镜看过了