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.
在面试C/C++职位时,我遇到了一个问题写ac程序来实现sizeof运算符,我已经写了代码,然后他让我使用按位运算来实现。我尝试了int....但是我不能, ,,, 任何人都可以发布代码,, 如何实现,,,
sizeof
您不能这样做,因为支持按位运算的数据类型集不是支持的类型集的超集sizeof。
证明:int*。
int*