指针与数组

来源:互联网 发布:人工智能行业分析报告 编辑:程序博客网 时间:2024/06/07 18:04
#include <iostream>using namespace std;int main(){    char ch[] = "hello world";    char *pch = "hello world";    cout << ch << endl;    cout << pch << endl;    return 0;}


hello world

hello world