博客
关于我
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/

你可能感兴趣的文章
Open××× for Linux搭建之二
查看>>
Open×××有线网络时使用正常,无线网络时使用报错的解决方案
查看>>
Opera Mobile Classic Emulator
查看>>
Operation not supported on read-only collection 的解决方法 - [Windows Phone开发技巧系列1]
查看>>
OperationResult
查看>>
Operations Manager 2007 R2系列之仪表板(多)视图
查看>>
operator new and delete
查看>>
operator new 与 operator delete
查看>>
operator() error
查看>>
OPPO K3在哪里打开USB调试模式的完美方法
查看>>
oppo后端16连问
查看>>
Optional类:避免NullPointerException
查看>>
Optional讲解
查看>>
ORA-00932: inconsistent datatypes: expected - got NCLOB【ORA-00932: 数据类型不一致: 应为 -, 但却获得 NCLOB 】【解决办法】
查看>>
ORA-00942 表或视图不存在
查看>>
ORA-01034: ORACLE not available
查看>>
ORA-01152: 文件 1 没有从过旧的备份中还原
查看>>
ORA-01207:文件比控制文件更新 - 旧的控制文件
查看>>
ORA-01795: 列表中的最大表达式数为 1000
查看>>
ORA-06575: 程序包或函数 NO_VM_DROP_PROC 处于无效状态
查看>>