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.
以下代码似乎执行得很好,但它如何有效以及这里发生了什么?
int i; printf("%d",i["11"]);
i["11"]== *("11" + i)=="11"[i]
i["11"]
*("11" + i)
"11"[i]
当你做i["11"]你所做的就是告诉编译器取值i并将其添加到它的值"11"并取地址上的值,即它们的总和
i
"11"