int main() { const int consatant = 20; int* tmp =const_cast<int *>(&consatant); *tmp = 30; cout << "0x"<<tmp<<":"<<*tmp<<endl; cout << "0x"<<&consatant<<":"<<consatant<<endl; return 0; }
搜索:常量折叠
65,210
社区成员
250,518
社区内容
加载中
试试用AI创作助手写篇文章吧