C++语言开发示例:20. 指针初始化
2024-07-11 10:48:56 2025-02-01 20:25:13 李腾 23 次阅读 0 次点赞
init_ptr.cpp
#include <iostream>
int main()
{
using namespace std;
int higgens = 5;
int *pt = &higgens;
cout << "Value of higgens = " << higgens
<< "; Address of higgens = " << &higgens << endl;
cout << "Value of *pt = " << *pt << "; Value of pt = " << pt << endl;
}
本文由人工编写,AI优化,请仔细甄别,转载请注明转自www.hylab.cn,原文地址:C++语言开发示例:20. 指针初始化