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

Dumping the Screen in W-I-D-E Color

Posted on December 13, 2025 by dgookin
2

Updating the hexdump utility with color is good, but adding wide characters for output is even better. From last week’s Lesson, I’m adding wide character output to generate codes for non-printing ASCII values 0 through 31 and 127.
Continue reading →

Posted in Lesson | 2 Replies

Dumping the Screen in Color

Posted on December 6, 2025 by dgookin
8

The hexdump utility is a marvelous tool for grabbing a sneak peek at a file’s innards, especially when debugging code that performs file access. As a text mode tool, however, it could stand to use some colorful character improvement.
Continue reading →

Posted in Lesson | 8 Replies

Consistently Constant

Posted on November 29, 2025 by dgookin
4

A new keyword added with the C23 standard is constexpr. It’s a storage class specifier that sets a constant value. Unlike the original C language qualifier, const, storage declared with the constexpr is truly constant and cannot be altered, as was demonstrated in last week’s Lesson.
Continue reading →

Posted in Lesson | 4 Replies

Constantly Complaining

Posted on November 22, 2025 by dgookin
2

The C language has an issue with constants. As far as I can tell, three different ways are at your disposal to express a constant: constant expressions, literal constants, and constant types. More variety may be available, which adds to the confusion.
Continue reading →

Posted in Lesson | 2 Replies

All Those Binary Dates

Posted on November 15, 2025 by dgookin
2

Only a handful of days of the year have a number format containing only ones and zeros. These “binary dates” are found by examining each day of the year to check for binary digit validity. In last week’s Lesson, I presented code to generate and save each of the year’s 365 dates as a 4-character string. It’s time to check each of them for binary date validity.
Continue reading →

Posted in Lesson | 2 Replies

Finding a Binary Date

Posted on November 8, 2025 by dgookin
Reply

Last week’s post was on 1101, which is a binary number! My inner nerd got so excited, I aimed to write code that locates and outputs all binary dates throughout the calendar year.
Continue reading →

Posted in Lesson | Leave a reply

Today’s Date is Binary!

Posted on November 1, 2025 by dgookin
Reply

You know you’re a nerd when you look at today’s date, November 1st, as 11-01 and then you think, “That’s a binary number!” Yeah, nerd.
Continue reading →

Posted in Lesson | Leave a reply

Filling the Pointer Pointers with Data

Posted on October 25, 2025 by dgookin
Reply

The final step of the pointer storage program is to add data to the various buffers, or “sticks,” where ten integer values are stored. This step involves ugly double-pointer notation. If you can, please review last week’s Lesson to get up to speed on how storage is allocated and how these pointers are managed.
Continue reading →

Posted in Lesson | Leave a reply

Adding Pointers to Pointers

Posted on October 18, 2025 by dgookin
Reply

Expanding an allocated buffer is something you can do with a pointer, but not with an array. This flexibility is why I encourage all C language students to understand and use pointers, though it doesn’t make the concept nay less onery.
Continue reading →

Posted in Lesson | Leave a reply

The Ever-Expanding Pointer Array

Posted on October 11, 2025 by dgookin
Reply

Perhaps the most difficult part of learning C is understanding and coding pointers. Even when you have a grip on things, it helps to keep fresh and practice new and utterly obnoxious ways to play with pointers.
Continue reading →

Posted in Lesson | Leave a reply

Post navigation

← Older posts

Recent Posts

  • Dumping the Screen in W-I-D-E Color
  • Which is Greatest? – Solution
  • Dumping the Screen in Color
  • Which is Greatest?
  • Consistently Constant

Recent Comments

  • dgookin on Dumping the Screen in W-I-D-E Color
  • M.Stumpfl on Dumping the Screen in Color
  • Chris Webb on Dumping the Screen in W-I-D-E Color
  • Chris Webb on Dumping the Screen in Color
  • M.Stumpfl on Dumping the Screen in Color

Meta

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

Copyright © 1997-2025 by QPBC.
All rights reserved

Proudly powered by WordPress