JoshuaWise.com

A small list of C brainteasers


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

c-brainteasers [2013/10/10 20:19]
joshuawise
c-brainteasers [2013/10/10 20:21] (current)
joshuawise
Line 47: Line 47:
 ASSERT_CHECKER("biteme"); ASSERT_CHECKER("biteme");
 ASSERT_CHECKER(2 + 2);</code> The last two should fail, by the C99 specification.  There is an easier way to do it with a GCC extension, but you do not need any GCC extensions to do this. ASSERT_CHECKER(2 + 2);</code> The last two should fail, by the C99 specification.  There is an easier way to do it with a GCC extension, but you do not need any GCC extensions to do this.
-  * //(C++1x-only)// Find a use for the token sequence ''......''.+  * //(C++11-only)// Find a use for the token sequence ''......''.
  
 I've enabled comments below, but please don't post spoilers. I've enabled comments below, but please don't post spoilers.
  
 ~~DISQUS~~ ~~DISQUS~~