Skip to primary content
Skip to secondary content

C For Dummies Blog

Main menu

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

Author Archives: dgookin

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 Reversing Words Filter – Solution

Posted on September 8, 2025 by dgookin
2

The task for this month’s C programming Exercise is to code a filter that reverses single words. As a filter, the code deals with standard input and output, but it must store this input in word-sized chunks for the reversing process to work.
Continue reading →

Posted in Solution | 2 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 Reversing Words Filter

Posted on September 1, 2025 by dgookin
Reply

Difficulty: ★ ★ ★ ☆

A few months back, this blog’s monthly Exercise was to write a filter to reverse all text input. No matter how much text floated in, the filter gobbled it all up and spewed it back in reverse order. This month’s challenge is similar, but on a smaller scale.
Continue reading →

Posted in Exercise | Leave a reply

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

Your Name in Base 36 – Solution

Posted on August 8, 2025 by dgookin
Reply

My solution for this month’s Exercise didn’t require much work. What I did was to “stack overflow” the problem by pulling in functions from earlier Lessons. The only new portion of code deals with processing the input before sending the string off to the b36_decimal() function I’ve already written.
Continue reading →

Posted in Solution | Leave a reply

Post navigation

← Older posts
Newer posts →

Recent Posts

  • The Scary Part of the Union
  • The Clock Angle Problem
  • Back When Unions Were Useful
  • Unions and Data Storage
  • Building a Boolean Array

Recent Comments

  • dgookin on The Clock Angle Problem
  • Chris Webb on The Clock Angle Problem
  • M.Stumpfl on Back When Unions Were Useful
  • dgookin on Back When Unions Were Useful
  • M.Stumpfl on Back When Unions Were Useful

Meta

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

Copyright © 1997-2026 by QPBC.
All rights reserved

Proudly powered by WordPress