13/06/2011
C and C++ quiz
This one is ugly, and be careful that not all compilers get it right so you are not even sure to get the right answer by testing it :)
What should the following code print in C? And what should it print in C++? And why?
printf( "%d\n", sizeof( 0, "hello" ) );
RSS and Tumblr readers, please load the post to access the Disqus comments.