分类: C/C++
2013-01-15 18:57:06
#include "stdafx.h"
#include
using namespace std;
int _tmain(int argc, _TCHAR* argv[])
char *p ="world";
return 0;
第二条时,"world"是在常量存储区中的,属于不能修改的内容,但是编译器又无法判断它。
{
char a[] = "hello";
a[0] = 'X';
cout<
p[0] = 'x';
cout<
}