无法修改C语言中const struct的成员
Submitted by hubdog on Sat, 2022-10-29 14:50
https://stackoverflow.com/questions/44533784/is-it-possible-to-change-a-...
原因是C编译器会把const的struct放到只读的内存保护区域,修改时会crash掉
Delphi, DotNet, Java, C++深度探索-哈巴狗的小窝 |
|
Search分类列表Navigation |
无法修改C语言中const struct的成员
Submitted by hubdog on Sat, 2022-10-29 14:50
https://stackoverflow.com/questions/44533784/is-it-possible-to-change-a-... 原因是C编译器会把const的struct放到只读的内存保护区域,修改时会crash掉 |
Recent blog postsUser login |