gpt4 book ai didi

c - 为什么 1987 Korn oneliner 打印的是 unix?

转载 作者:太空狗 更新时间:2023-10-29 16:43:49 24 4
gpt4 key购买 nike

<分区>

好,我咬。一个answer到广受欢迎的Why does the C preprocessor interpret the word "linux" as the constant "1"?问题提到

main() { printf(&unix["\021%six\012\0"],(unix)["have"]+"fun"-0x60);}`

prints "unix", but for reasons that have absolutely nothing to do with the spelling of the macro name.

我读了http://www.ioccc.org/1987/korn.hint但我认为更多的细节将有助于消除混淆:)

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com