Jan 30
Quick quiz: What is the behavior of the following code:
#include <stdio.h>
int main(int argc, char* argv[])
{
try
{
*((char*) 0) = 1;
}
catch (...)
{
printf("Caught exception.\n");
}
return 0;
}
The answer is below the fold.
Recent Comments