1 #include<iostream> 2 using namespace std; 3 4 int main() 5 { 6 char var = '5'; 7 char *p_var; 8 p_var = &var; 9 char *p = "shi";//字符串常量就是字符数组,后面也会自动加'\0' 10 char arr[]= "lianxi";//字符数组 11 return 0; 12 }