While the C language offers hexadecimal notation and output, it ignores binary. Now with the C 23 standard, binary expression and output is supported.
Continue reading
Category Archives: Lesson
Testing for C23 Compatibility
The C23 standard is only partially implemented on a few compilers. To ensure that you can build C23 programs, you must obtain the latest compiler version from your distro’s package manager. Even then, not all the C23 capabilities may be available.
Continue reading
Welcome C23
The next C standard is established and it’s slowly being implemented. If you have the latest version of the C compiler installed on your system, you can take advantage of some of the fun and improved features of the C programming language.
Continue reading
Initializing Only Part of an Array
I’m continually amazed when I discover some aspect of the C programming language that I’ve not encountered before. This time, the trick is how to initialize individual array elements.
Continue reading
Almost a Spelling Bee-Like Scan
Scanning the digital dictionary is fun, but it’s gone on way too long! I was going to end this series with code that solves the Spelling Bee game, but decided to end things with this Lesson. This final post scans the dictionary for words that match a given clutch of characters.
Continue reading
Finding All the Pangrams
I introduced the pangram concept in last week’s Lesson. The code demonstrated how to locate 7-letter words where no letter repeats, based on the online game Spelling Bee. But a pangram need not be limited to just seven letters.
Continue reading
Hunting for 7-Character Pangrams
I’m a fan of the online game Spelling Bee. In this game, you use a combination of seven letters to spell various words. Each word is at least four-letters long and must contain a special letter, shown in the center of Figure 1. When you create a word that contains all seven letters, you’ve discovered a pangram.
Continue reading
Finding Four-Letter Words
Not all the nasty words are four letters long, but a good chunk of them are. If you ran the program from last week’s Lesson, you can quickly check the computer’s dictionary for the words you once couldn’t say on TV, gleefully typing them in and confirming that they exist in the dictionary. But how many four letter words are there?
Continue reading
Checking Your Spelling
At the basic level, a spell-checker works as a simple comparison program: The word in question is compared with each word in the dictionary. When the source word isn’t found, it’s assumed to be misspelled. With a dictionary file on your computer, it’s easy for a C programmer to code this type of program.
Continue reading
Plucking Out a Random Word
It’s time for your computer to babble nonsensically. No alcohol is necessary. All you must do is pluck out a random word from the dictionary. Run the program several times and you have babbly nonsense: subtotal spectacles lute's sushi's
. Brilliant! *HIC*
Continue reading