【发布时间】:2020-03-27 13:58:15
【问题描述】:
说说c++编程,程序崩溃时会不会自动清空IO缓冲区?如果不会,那后面肯定有一些考虑,是什么原因?
cout << "some text";
// here our program crashed unexpected, whether the IO buffer will be automatically cleared?
doSomethingThatCrashTheProgram();
IO缓冲区是共享内存还是每个程序单独分配的空间?
【问题讨论】: