int p=0;
p = p++ + ++p;
printf("p=%d\n", p);I let the readers test their knowledge on this one. On my side, after some spending a few minutes arguing with coworkers, I decided to see if IDA and the Hex-Rays plugin could help me. Here is the disassembly :
int __cdecl main()
{
printf("p=%d\n", 3);
return 0;
}Hail to the almighty IDA !
No comments:
Post a Comment