面试题还是不太清楚怎么回答。尤其是8,我用MSVC试了一下,没有问题啊。# Programming - 葵花宝典
j*j
1 楼
8. What’s potentially wrong with the following code?
long value;
//some stuff
value &= 0xFFFF;
Note: Hint to the candidate about the base platform they’re
developing for. If the person still doesn’t find anything wrong with the
code, they are not experienced with C++.
9. What does the following code do and why would anyone write something
like that?
void send (int *to, int * from, int count)
{
int n = (count + 7) / 8;
long value;
//some stuff
value &= 0xFFFF;
Note: Hint to the candidate about the base platform they’re
developing for. If the person still doesn’t find anything wrong with the
code, they are not experienced with C++.
9. What does the following code do and why would anyone write something
like that?
void send (int *to, int * from, int count)
{
int n = (count + 7) / 8;