Skip to primary content
Skip to secondary content

C For Dummies Blog

Main menu

  • C For Dummies (home)
  • History
  • Series
  • Supplemental
  • Blog Miscellany

Category Archives: Lesson

Post navigation

← Older posts
Newer posts →

The C23 Deprecated and Removed Collection

Posted on January 27, 2024 by dgookin
5

As with all language updates, things change. Some of these items are deprecated while others are outright removed. Here’s the list.
Continue reading →

Posted in Lesson | 5 Replies

New C23 Language Features

Posted on January 20, 2024 by dgookin
5

While other programming languages seem to improve and update in great leaps, C moves at a glacial pace. The C23 upgrade offers a few new and exciting features, but nothing I would call impressive or awesome.
Continue reading →

Posted in Lesson | 5 Replies

Initializing Arrays in C23

Posted on January 13, 2024 by dgookin
8

You can initialize an array in the C programming languages in three ways: Not at all, only some elements, or all of the elements. Some compilers offer a fourth way, which initializes all elements to the same value. With the C23 standard, yet another way to initialize an array is possible.
Continue reading →

Posted in Lesson | 8 Replies

Exploring Variable Integer Widths in C23

Posted on January 6, 2024 by dgookin
8

As C evolved, so did the definitions for integer sizes short, int, and long. Back when I first coded C, a short was 8-bits, an int was 16-bits, and a long was 32-bits. These values aren’t the same today or even consistent across platforms. This issue is addressed in the C23 standard by using the _BitInt() data type.
Continue reading →

Posted in Lesson | 8 Replies

Binary Notation in C23

Posted on December 30, 2023 by dgookin
8

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 →

Posted in Lesson | 8 Replies

Testing for C23 Compatibility

Posted on December 23, 2023 by dgookin
2

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 →

Posted in Lesson | 2 Replies

Welcome C23

Posted on December 16, 2023 by dgookin
Reply

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 →

Posted in Lesson | Leave a reply

Initializing Only Part of an Array

Posted on December 9, 2023 by dgookin
1

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 →

Posted in Lesson | 1 Reply

Almost a Spelling Bee-Like Scan

Posted on December 2, 2023 by dgookin
Reply

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 →

Posted in Lesson | Leave a reply

Finding All the Pangrams

Posted on November 25, 2023 by dgookin
4

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 →

Posted in Lesson | 4 Replies

Post navigation

← Older posts
Newer posts →

Recent Posts

  • What is the Largest Value?
  • Accessing the Mouse in a Terminal Window
  • Storing and Interpreting Mouse Input
  • Where is the Mouse?
  • Pulling Numbers from a String – Solution

Recent Comments

  • dgookin on Reading Raw Input
  • Chris Webb on Reading Raw Input
  • dgookin on Is It a “Real” Triangle? – Solution
  • Chris Webb on Is It a “Real” Triangle? – Solution
  • dgookin on A Colorful Hexdump

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org

Copyright © 1997-2026 by QPBC.
All rights reserved

Proudly powered by WordPress