// 48.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。
//
#include <iostream>
using namespace std;
int main()
{
char str[10];
char* strip = str;
//输入输出
cout << "str=";
cin >> str;//用字符数组输入字符串
cout << "str=" << str << endl;
cout << "strip=" << strip << endl;
cout << "strip=";
cin >> strip;//用字符指针变量输入字符串
cout << "str=" << str << endl;
cout << "strip=" << strip << endl;
}
1-strip是一个指针变量,为什么输出strip的时候没有*输出的是指针变量所指向的值而不是str这个数组的地址
2-第二个输入string不是str的地址吗为什么还能输入值;为什么输入了strip之后为什么指针变量string和数组str都变成了输入的值66666