CC Blog

Carl Hage Wins the CC Code Challenge (Week 14)

We have a winner of last week’s CC Weekly Code Challenge, sponsored by IAR Systems! We posted a code snippet with an error and challenged the engineering community to find the mistake!

Congratulations to Carl Hage of California, USA for winning the CC Weekly Code Challenge for Week 14! Carl will receive an IAR Kickstart: KSK-STM32F407ZG kit.

Carl’s correct answer was randomly selected from the pool of responses that correctly identified an error in the code. Carl answered:

Line 11: Need + int($year/400) not – int($year/400)

Tech Note: it’s perfectly legitimate in Perl to have a “bare” expression as the last line of a subroutine — the default return value from any function (if there’s no explicit “return” statement) is the value of the last expression evaluated.

— ADVERTISMENT—

Advertise Here

You can see the complete list of weekly winners and code challenges here.

What is the CC Weekly Code Challenge?
Each week, Circuit Cellar’s technical editors purposely insert an error in a snippet of code. It could be a semantic error, a syntax error, a design error, a spelling error, or another bug the editors slip in. You are challenged to find the error.Once the submission deadline passes, Circuit Cellar will randomly select one winner from the group of respondents who submit the correct answer.

Inspired? Want to try this week’s challenge? Get started!

Submission Deadline: The deadline for each week’s challenge is Sunday, 12 PM ESTRefer to the Rules, Terms & Conditions for information about eligibility and prizes.

Line 11: Need + int($year/400) not – int($year/400)


Don't miss out on upcoming issues of Circuit Cellar. Subscribe today!

 
 
Note: We’ve made the October 2017 issue of Circuit Cellar available as a free sample issue. In it, you’ll find a rich variety of the kinds of articles and information that exemplify a typical issue of the current magazine.


Would you like to write for Circuit Cellar? We are always accepting articles/posts from the technical community. Get in touch with us and let's discuss your ideas.

— ADVERTISMENT—

Advertise Here

Become a Sponsor
Website | + posts

Circuit Cellar's editorial team comprises professional engineers, technical editors, and digital media specialists. You can reach the Editorial Department at [email protected], @circuitcellar, and facebook.com/circuitcellar