#includeusing namespace std; char c1[10] = {}; int i1; int main(){ char c2[5] = {}; int i2; cout << "c1[0]: " << c1[0] << 't' << endl; cout << "c2[0]: " << c2[0] << 't' << endl; cout << i1 << endl; cout << i2 << endl; return 0; }
运行结果:
c1[0]: c2[0]: 0 0
#includeusing namespace std; int main() { int *p; cout << p << endl; // cout << *p << endl; }
运行结果:
0



