c++ - 输出的含义
问题描述
# include <iostream>
int main()
{
char* cptr{new char};
std::cout << cptr;
delete cptr;
}
输出:
debug.
为什么?我期待一个地址。
解决方案
推荐阅读
- python - 根据日期和时间添加新记录
- java - JPA 如何持久化地图
> - java - 恢复最小化窗口后Java swing组件布局位置更改
- python-3.x - nfcapd(nfdump 工具之一)生成的二进制文件的结构是什么?
- c++ - 传递"矢量
" 作为函数参数,我得到一个错误 - r - 使用带有条件的 n_distinct 计算每位患者的平均值
- amazon-web-services - AWS 目标组无法检测到 ECS 的临时端口
- ios - 在ios中点击手机附件时如何获取数据
- angular - Angular 5 的服务器端日志文件
- javascript - 优化从输入字段复制数据的javascript onclick函数