There is no such word as moduluse, but the C language does feature the modulus operator, %. You can employ that operator do count off intervals, which allows you to manipulate information in a consistent and interesting way.
Continue reading
Author Archives: dgookin
Every Other One
You should be familiar with the C language modulus operator, %. Even if that familiarity is fear or confusion it’s still familiarity.
Continue reading
Test Your Formatting Knowledge
In late September and early October, I wrote a series of lessons on how the various printf() formatting commands are used. Now it’s time to put your skills to the test.
Continue reading
Schizoid Operators
The C language features a host of symbols that take on different meanings depending on how they’re used. Unless you’re careful, these operators’ multiple personalities can confuse the bejeebers out of you.
Continue reading
Three Choices
Either-or decisions are easy. They’re similar to the 1 or 0 of low-level programming: True/False, On/Off, Yes/No. When a third element appears, decision-making becomes more complex. To put it another way: That third element can drive both the programmer and the program crazy.
Continue reading
Conversion Character Mania: The Rest
I don’t think I’ve ever seen the full lot of printf() conversion characters explained in any detail. This lesson is the last in a series of my attempt to do just that.
Continue reading
Conversion Character Mania: Text Output
The printf() function’s conversion characters %s and %c seem to be rather straightforward. Or are they?
Continue reading
Allow Me to Squeeze In Here…
When it comes to editing text, the concept of copy and paste is an old one: You select a chunk of text, choose its new location, then paste in the text. The surrounding text jiggles around to make room. Neat and tidy.
Continue reading
Conversion Character Mania: Floating Point Output
Perhaps the most complex and bizarre things you can format with printf() conversion characters are floating point numbers. The variety of the options can be overwhelming.
Continue reading
Conversion Character Mania: Integer Output
The printf() function’s power lies in its formatting abilities, specifically the display of values. That power is vast, but the documentation showing how it works really sucks.
Continue reading