4 ms·
In 2008, I've started to learn C language by solving these amazing puzzles: http://www.gowrikumar.com/c/index.php http://www.gowrikumar.com/c/index.php I thin
by hal9000xp 10y ago
In 2008, I've started to learn C language by solving these amazing puzzles:
http://www.gowrikumar.com/c/index.php http://www.gowrikumar.com/c/index.php
I think this page contains high quality C puzzles.
If you know something similar, let me know, I would love to solve.
- kristianp 10y agoI used to enjoy these: http://www.gimpel.com/html/bugs.htm http://www.gimpel.com/html/bugs.htm BTW (apologies), the correct past-tense is "In 2008, I started to learn the C...".
- pksadiq 10y agoA note: 'int main()' and 'int main(void)' are different in C (but the same in C++). Most online puzzles uses the former (I have also seen this in hacker rank), but the standard says that the main function should be defined as void if no argument is accepted (or some implementation defined manner)
- 72deluxe 10y agoYep, we write C++ at work and the technical director loves writing (void) in parameters due to years of habit after writing C. To me it looks redundant (I went straight to C++, skipped C).