We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
int a = 6;
main {
DbgPrint("a=%d', a);
}
when I run t the variable a should be 6 but not!!
Who should init that variable , no the compiler ? I don't expect CRT to set it . I expect only .bbs section to be set to zero by CRT at runtime stage.
Both those expectations are incorrect. It's precisely the CRT that's supposed to do that initialization.