Tips and Tricks (10)

Previous T&T

I could have named this one: welcome to the world of C!
The most common error made by green horn C programmers consists in skipping the semi colon at the end of each instruction. The other frequent error consists in using the = sign to compare two values. I recently fell in one the most caracteristic error of C language while writing, do not ask me why, a stepping down counter using the for (uint8_t i = 3; i >= 0, i–) syntax.
Which failed to work properly. Just because once i has reached the value of 0, the for loops once again with a value of -1 …
And suddenly, you get propelled at the speed of sound out of the noosphere into the noogenesis…

Next T&T

2 Comments

  1. […] Next T&T Tags: Tips & Tricks Comment (RSS)  |  Trackback […]

Leave a Reply

You must be logged in to post a comment.