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 →

Finding Those Pesky Null Characters!

Posted on September 20, 2025 by dgookin
2

You’ve crafted a brilliant function, ensuring that it properly processes words and generates needed output. Is the code perfect? Well, it looks perfect. But how do you know for certain?
Continue reading →

Posted in Lesson | 2 Replies

More Array, More Decay

Posted on September 13, 2025 by dgookin
4

I’ll be blunt: If you want to pass an array to a function, or have a function return an array, just give up now and use pointers. It’s a far easier operation, and it would save me the bother of having to write this post to further discuss the topic of array decay.
Continue reading →

Posted in Lesson | 4 Replies

The Trouble with Array Decay

Posted on September 6, 2025 by dgookin
2

Array decay has nothing to do with too much sugar in your code or poor brushing habits. No, it’s a hot topic in C programming, and a source of confusion.
Continue reading →

Posted in Lesson | 2 Replies

The Story of the Undefined Reference Error

Posted on August 30, 2025 by dgookin
Reply

Let me be blunt: If you haven’t yet seen an undefined reference error, you truly aren’t a C programmer. In fact, the more of these messages you see, the longer you’ve been coding in C. Undefined reference errors are a badge of honor.
Continue reading →

Posted in Lesson | Leave a reply

Things That Bounce (Even More exp() Function Stuff)

Posted on August 23, 2025 by dgookin
Reply

It’s time to free yourself from the math-nerd aspect of the exp() function and put it to legitimate use by animating an asterisk bouncing across the screen. Such a feat may be considered unusual for a stream-oriented programming language like C, but I find animation more interesting than math.
Continue reading →

Posted in Lesson | Leave a reply

Things That Fall (More exp() Function Stuff)

Posted on August 16, 2025 by dgookin
4

Text mode graphics were a Big Deal with computers for the longest time. C’s stream I/O didn’t stop various computer games from being developed throughout the 1970s and 1980s. And this limitation isn’t going to stop me from animating a falling ball, er, asterisk.
Continue reading →

Posted in Lesson | 4 Replies

Fun with the exp() Function

Posted on August 9, 2025 by dgookin
Reply

Deep in the crevasse of oddball math functions is one that raises Euler’s number (e) to a given power. This calculation is vital enough in programming that it sports its own function, exp(). And I would ignore this function with exuberant glee were it not for a trick someone showed me a long time ago.
Continue reading →

Posted in Lesson | Leave a reply

My “Dear Lord This Is So Boring” Dice-Rolling Game

Posted on August 2, 2025 by dgookin
Reply

Rolling seven dice over and over is how I passed time “playing” D&D. But I also played a game with the dice, one that I introduced in last week’s Lesson. That lesson’s code got things started. This Lesson finishes the project.
Continue reading →

Posted in Lesson | Leave a reply

Roll ‘dem Bones!

Posted on July 26, 2025 by dgookin
Reply

You would think that I’d be deeply into Dungeons and Dragons, but no. I can’t stand the game. I find it tedious and predictable, boring. But I did enjoy rolling all those dice. Who knew that a 20-side die is a thing — and that rolling a “nat 20” is a big deal?
Continue reading →

Posted in Lesson | Leave a reply

From Base 36 to Decimal

Posted on July 19, 2025 by dgookin
Reply

Continuing my Base 36 series, from last week’s Lesson, the base35_string() function successfully converts a decimal value into its base 36 representation. To verify that the conversion works, another function is necessary to convert base 36 strings into their decimal equivalents.
Continue reading →

Posted in Lesson | Leave a reply

Post navigation

← Older posts
Newer posts →

Recent Posts

  • Consistently Constant
  • Constantly Complaining
  • All Those Binary Dates
  • Finding a Binary Date
  • Having Fun with goto – Solution

Recent Comments

  • dgookin on Consistently Constant
  • M.Stumpfl on Consistently Constant
  • Chris Webb on Consistently Constant
  • Chris Webb on Consistently Constant
  • dgookin on All Those Binary Dates

Meta

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

Copyright © 1997-2025 by QPBC.
All rights reserved

Proudly powered by WordPress