The Unofficial C For Dummies Website

Recent Lessons

The String Span Functions
November 27, 2021 Standard library functions strspn and strcspn are oddballs that you may find useful.
All Those _t Data Types
November 20, 2021 No, the C gurus did not add _t just to make declaring variables more difficult to type.
Declaring Structures, Trick #3
November 13, 2021 Another weird thing with bitfields is that you can force their alignment in memory.
Declaring Structures, Trick #2
November 6, 2021 A structure is one of the few places in C where you can declare a bit field.
Declaring Structures, Trick #1
October 30, 2021 You may already know that it's possible to declare and define a structure in a single statement, but here's a trick you may not have seen before.

This Month's Exercise

The Power Grid
November 1, 2021 Tables are fun to program. At least I think so. Maybe a bit of math can raise the bar?

Showcase Title

I'm pleased to announce the early preview of my next programming title, Tiny C Projects from Manning Publishing.

Tiny C Projects cover MEAP

MEAP is the Manning Early Access Program, which allows you to review already-submitted content before the book is published. Four of 21 planned Chapters are available online; I'm submitting new chapters as I write them. So please check it out. Here is the link: http://mng.bz/yJVG

Proceeds from sale of this book (compensated link) go toward supporting this website. Thank you!

Current Titles

C Programming For Dummies   Programmer's Guide to NCurses   Programmer's Guide to XML and JSON   Programmer's Guide to Curl

Online Training

Bonus! Sign up for a free 30-day trial at LinkedIn Learning