由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
JobHunting版 - 问个debug和release mode的问题
相关主题
bloomberg 问题: C++ construct 时用 new 没"()"问个算法题2
攒rp,电面题目问个h1b的事情
[板上牛人多]问个算法题也问个opt的问题
问个C++ ctor的问题问个越界的问题
问个关于starup公司问个弱智java问题
问个怎么debug的系统题问个题目
问个opt身份问题问个概率题
问个static STL container的问题问个题目
相关话题的讨论汇总
话题: mode话题: debug话题: release话题: variables
进入JobHunting版参与讨论
1 (共1页)
q**y
发帖数: 129
1
1. uninitialized variables 在debug mode 和 release mode下有什么区别?
2. 在release mode下怎么debug(就是debug mode下没bug,但在release mode 下有,怎
么去debug)?
我在网上搜到的是:
"release mode only bugs are caused by uninitialized variables. In debug, the
compiler will help you by auto-initializing variables to special patterns
for you, but in release if not explicitly initialized a variable will hold
whatever value happened to be at that memory location previously, which can
result in unexpected behavior."
我怎么觉得平时在debug mode下写程序
1 (共1页)
进入JobHunting版参与讨论
相关主题
问个题目问个关于starup公司
another C++ question问个怎么debug的系统题
面筋问个opt身份问题
SQL debug step into a store procedure from another one (转载)问个static STL container的问题
bloomberg 问题: C++ construct 时用 new 没"()"问个算法题2
攒rp,电面题目问个h1b的事情
[板上牛人多]问个算法题也问个opt的问题
问个C++ ctor的问题问个越界的问题
相关话题的讨论汇总
话题: mode话题: debug话题: release话题: variables