对指针的引用的例子举例

对指针的引用有什么用举几个例子对指针的引用有什么用举几个例子

非常简易


int* p = new int[5];
    p[0] = 10;
    cout << "p[0] = " << p[0] << endl;

img