1. Home
  2. Computing & Technology
  3. C / C++ / C#
photo of David Bolton
David's C / C++ / C# Blog

By David Bolton, About.com Guide to C / C++ / C#

Answer to Monday's C Problem

Wednesday December 3, 2008
Thanks to everyone who entered. The code shown on Monday was taken from Joseph Miklojcik's Handbook of C Programming Style which you can download free or purchase as a printed book on Lulu.com.

As at least one person spotted, the code prints out all the arguments supplied to it. Nothing too complicated and yet as it was originally given, not exactly easy to read. Most software houses have their own style guides and at first writing code in a particular style can be awkward and you may disagree with some part of it. I don't really like underscores to separate parts of names which the book suggests you do.

This book is shared under a Creative Columns Attribution copyright which lets you use it for free. It's worth a read, underscores notwithstanding theres a lot of good wisdom in there. And if you like it, help the author by buying the print copy. I've added a link to the free C E-Book page.

Comments

No comments yet. Leave a Comment

Leave a Comment

Line and paragraph breaks are automatic. Some HTML allowed: <a href="" title="">, <b>, <i>, <strike>

Explore C / C++ / C#
About.com Special Features

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

Easy ways to connect two computers for networking purposes. More >

  1. Home
  2. Computing & Technology
  3. C / C++ / C#

©2009 About.com, a part of The New York Times Company.

All rights reserved.