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.
我尝试了这些操作:
(7 xor 5) 和 (7 - 5)
(7 xor 5)
(7 - 5)
我得到相同的答案。我想知道哪个操作快?谁能给我解释一下?
您应该编写清楚地表达您尝试执行的操作的代码。
编译器 / JITter 将负责使其快速。