Sample 4.16:init_ptr.cpp

来源:互联网 发布:一键传淘宝有什么坏处 编辑:程序博客网 时间:2024/04/28 04:24
#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;    return 0;}

原创粉丝点击