Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我知道全局常量将存储在“只读”部分。但是静态局部常量存储在内存的哪个部分?
这取决于编译器和您正在编译的平台。它们可能被放置在堆栈的底部、主线程的数据段中,或者只是在堆上,甚至是其他地方。