Skip to primary content
Skip to secondary content

C For Dummies Blog

Main menu

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

Post navigation

← Older posts
Newer posts →

Bouncing an Asterisk

Posted on October 5, 2024 by dgookin
Reply

For last week’s Lesson, I gathered various techniques to show how the terminal screen can be manipulated directly in C without using a library like Ncurses. I have a few more tricks to show.
Continue reading →

Posted in Lesson | Leave a reply

Multiplying Matrixes

Posted on October 1, 2024 by dgookin
Reply

Difficulty: ★ ★ ★ ☆

The task for last month’s Exercise was to describe complex data — a matrix. For this month’s Exercise, your task is to multiply these matrixes.
Continue reading →

Posted in Exercise | Leave a reply

Playing with the Terminal

Posted on September 28, 2024 by dgookin
Reply

I miss the bad old days, back when I first learned to program. The microcomputers of the day were single user, single task. The hardware was directly accessible. You can truly do some messing around, which was quite entertaining for a budding programmer.
Continue reading →

Posted in Lesson | Leave a reply

The Look-and-Say Sequence
(As Much as the Computer Can)

Posted on September 21, 2024 by dgookin
Reply

Coding a Look-and-Say sequence should be fun, just like any C programming project where you’re not under pressure from a deadline. From last week’s Lesson, I was able to create a nested loop that takes a number and outputs its Look-and-Say values. It’s time to update this code to output a sequence.
Continue reading →

Posted in Lesson | Leave a reply

Coding a Look-and-Say Sequence

Posted on September 14, 2024 by dgookin
Reply

You may have seen this sequence on the Internet, in one of those “guess which number goes next?” type of posts:

1 11 21 1211 ...

So, which number comes next? I suppose it’s possible to divine a solution mathematically, but this sequence is known as a Look-and-Say sequence.
Continue reading →

Posted in Lesson | Leave a reply

Describing Complex Data – Solution

Posted on September 8, 2024 by dgookin
2

In the C language, a structure is used to express complex data types. The structure contains members that describe different parts of this complex data, such as a matrix required in this month’s Exercise.
Continue reading →

Posted in Solution | 2 Replies

Modifying an Array

Posted on September 7, 2024 by dgookin
Reply

I’ve seen functions (okay, methods) in other programming languages that let you digitally tussle with an array. You can split an array, trim it, expand it, insert elements, remove elements, and so on. Such things are possible in C, but you must code the function yourself.
Continue reading →

Posted in Lesson | Leave a reply

Describing Complex Data

Posted on September 1, 2024 by dgookin
2

Difficulty: ★ ★ ☆ ☆

I’ve written many C programming Lessons and Exercises that deal with matrixes. For most of them, such as rotating a matrix, I rely on uniform matrix sizes, like 5×5 or 10×10. This approach makes coding easier, but it doesn’t properly describe every type of matrix.
Continue reading →

Posted in Exercise | 2 Replies

More Messing with Array Subscripts

Posted on August 31, 2024 by dgookin
Reply

I’ve written before about array subscripts and how they’re secretly expressions. But another weird aspect of array subscripts also looms on the horizon: The format a[1] can be written as 1[a].
Continue reading →

Posted in Lesson | Leave a reply

Exploring Allocated Memory

Posted on August 24, 2024 by dgookin
Reply

Details about a pointer can easily be obtained and output: it’s name, address, and contents. Obtaining the size of the buffer it references, however, is a different animal.
Continue reading →

Posted in Lesson | Leave a reply

Post navigation

← Older posts
Newer posts →

Recent Posts

  • Obtaining the Averages
  • Extracting Data Chunks
  • C Blog 13th Anniversary
  • Colorful Data Chunks
  • A Little Bit Off the Sides – Solution

Recent Comments

  • dgookin on C Blog 13th Anniversary
  • M.Stumpfl on C Blog 13th Anniversary
  • Chris Webb on C Blog 13th Anniversary
  • M.Stumpfl on A Little Bit Off the Sides – Solution
  • dgookin on A Little Bit Off the Sides – Solution

Meta

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

Copyright © 1997-2026 by QPBC.
All rights reserved

Proudly powered by WordPress