首页 > 其他分享 >c语言

c语言

时间:2023-02-22 07:55:22浏览次数:29  
标签:std 语言 int 42 0x61ff04 endl cout

#include <iostream>
int main() {        // int i=42;    // int *p;    // int *r = p;    // std::cout<<*r<<" "<<r<<" "<<p<<" "<<*p<<std::endl;
   int i=42;    int *p=&i;    int *&r = p;    int &m=*p;    std::cout<<&i<<std::endl;    std::cout<<p<<" "<<&p<<" "<<*p<<std::endl;    std::cout<<r<<" "<<&r<<" "<<*r<<std::endl;    std::cout<<&m<<" "<<m<<std::endl; // 0x61ff04 // 0x61ff04 0x61ff00 42 // 0x61ff04 0x61ff00 42 // 0x61ff04 42    return 0; }

标签:std,语言,int,42,0x61ff04,endl,cout
From: https://www.cnblogs.com/gendway/p/17143102.html

相关文章