博客
关于我
C++的内存分类
阅读量:200 次
发布时间:2019-02-28

本文共 863 字,大约阅读时间需要 2 分钟。

C++?????????????????????????????????????????????????????

1. ??

??????????????????????????????????????????????????????????????????????

2. ??

???????new?????????????delete?????????????????????????????????????????????????

3. ?????

????????malloc????????????????????????????????????????????

4. ????/?????

?????????????????????????????????????????????

5. ???

???????????????????????????????????????????????

??????

?????????????????????????????????????????????????????????????????

????

??C++?????????????????

int global = 1; // ??????????/?????int main() {    int a;          // ??????????    char b[12];     // ??????????    char *c = new char(); // ??????????    char *e = (char *)malloc(8 * sizeof(char)); // ???????    int d = 5;   // ???????????    return 0;}

??????

???????????

  • c???????0x2c????
  • e???????0x28????
  • d???????0x24????
  • a?b???????????

???????????????????

转载地址:http://nmwp.baihongyu.com/

你可能感兴趣的文章
Opengl中的gluProject函数认识
查看>>
OpenGl介绍
查看>>
OPENGL半透明图像产生黑色光环
查看>>
OpenGL和图形卡
查看>>
OpenGL字体绘制
查看>>
OpenGL学习
查看>>
openGL学习步骤
查看>>
OpenGL的基本概念介绍
查看>>
OpenGL着色器、纹理开发案例
查看>>
OpenGL程序无法启动此应用程序,因为计算机中丢失glut32.dll(转))
查看>>
opengl绘制几何体的函数
查看>>
openGL缓存概念和缓存清除(01)
查看>>
OpenJDK11 下的HSDB工具使用入门
查看>>
openjdk踩坑
查看>>
openjudge 1792 迷宫 解析报告
查看>>
OpenJudge/Poj 1658 Eva's Problem
查看>>
Openlayers 9.0新功能
查看>>
openlayers controls基础知识
查看>>
Openlayers Draw的用法、属性、方法、事件介绍
查看>>
Openlayers Interaction基础及重点内容讲解
查看>>