开发者

Default value for static boolean variable

开发者 https://www.devze.com 2023-03-22 11:21 出处:网络
I\'m trying to debug the v8 javascript engine.while debugging i found a instruction \"sta开发者_开发问答tic bool has_terminated\".Can anyone tell me what is the default value for a \"static boolean va

I'm trying to debug the v8 javascript engine.while debugging i found a instruction "sta开发者_开发问答tic bool has_terminated".Can anyone tell me what is the default value for a "static boolean variable" ?


For a boolean in most languages that allow uninitialized use it's false (unless it's on the stack or heap in which sometimes there's no guarantee).

0

精彩评论

暂无评论...
验证码 换一张
取 消