Monday, June 2, 2008

About C puzzles

Well, there are other blogs working on the same topic as mine.

I found the following,

Here you will find more puzzles which are of hands on code bugs .

These questions are pretty much from the day to day life of the engineer here ( or may be he really chases bugs ) .

I found the following problem pretty interesting,

int main()
        int i, n = 20;
        for (i = 0; i < n; i--)
 return 0;

Change/add only one character and print '*' exactly 20 times.
(there are atleast 3 solutions to this problem :-)

I got TWO:



It is more like a question that he conjures, Great way to go !

No comments: