tags:

views:

480

answers:

8

Hi all,

While there are good sites having interesting programming puzzles like mentioned in this SO post. But are there any specific to C/C++?

+6  A: 

This site has some interesting C puzzles.

Prasoon Saurav
Some of the questions cheat by syntax highlighting keywords containing typos - many of us are used to detecting typos because they're not syntax highlighted in the way we expect. Though I should point out in the particular example I'm thinking of the typo does actually compile ;-)
James Morris
Thats what a puzzle means, isn't it ? ;-)
Prasoon Saurav
+1  A: 

The International obfuscated C Code Contest

DevSolar
+2  A: 

TopCoder (look for algorithm problems, they have an online test app to let you try out your code easily).

John
+6  A: 

http://projecteuler.net/

Not necessarily C, but interesting puzzles.

@dstibbe I have already mentioned the SO post in which the abovementioned site is the best answer
rocknroll
+6  A: 

Gimpels bug of the month page is an advertisement for their pclint product, but it still has interesting C++ 'find the bug' puzzels.

Regards,

Sebastiaan

Sebastiaan Megens
+3  A: 

Take Washu's C++ quiz. It's only four questions, but most programmers get at least one wrong. In fact, many programmers get all of them wrong :)

http://scapecode.com/?cat=9

FredOverflow
Wohoo! Got the major points of everyone right. :)
Marcus Lindblom
A: 

Programming praxis has good problems though the answers are usually in LISP. However, I'm often more interested in reading the question since often it's some algorithm or field I don't know about.

Francis Boivin
+3  A: 

I can't believe the UVA online judge hasn't been linked to yet; it's a massive archive of tens of thousands of problems, with an online judge that will score your answers in real-time, detailed stats for each question and a large forum.

http://uva.onlinejudge.org/

Start with the problem sets, they'll keep you busy for several life times:

http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=1

meagar
@meager, an excellent site, very similar to Project Euler
rocknroll