The word radian comes from radius, which is half the diameter of a circle. If you take a radius and create an arc along the circle of the same length, you get one radian.
Okay. So what?
Continue reading
The word radian comes from radius, which is half the diameter of a circle. If you take a radius and create an arc along the circle of the same length, you get one radian.
Okay. So what?
Continue reading
Math should be fun. My observation is that it’s not taught correctly in school, so generations of students get an education, but are weak in math. I’m one of them. As I’ve aged, I’ve grown fond of math, but still struggle with it. That’s disappointing because so much of math is actually kind of cool, just not explained well.
Continue reading
C language pointers are smarter than the old BASIC peek and poke commands. A pointer knows the the type of value it’s referencing in memory, specifically how large the value is or how many bytes of storage it occupies. You can use the Code::Blocks debugger to witness such pointer intelligence.
Continue reading
In last week’s Lesson, the Code::Blocks debugger helped examine the values of two variables, short int a and short int pointer p. Pointer p revealed a memory location inside the computer, which you can examine by using Code::Block’s Memory dump window.
Continue reading
Back in the microcomputer days, hobbyists used the BASIC language to program their proto-PCs. BASIC is easy to learn, sloppy and forgiving. It also hints at some low-level language attributes, primarily with the PEEK and POKE commands.
Continue reading

Five years (plus eight days) ago, this blog went public with its first post. It was several months before the companion book, Beginning Programming with C For Dummies appeared, but I wanted the blog to be well-stocked with posts for those first, eager readers.
Continue reading
A function that reads a string of 1s and 0s to generate an integer value output just screams to be called binput(). Yet, because my new version of the binbin() function (to display a binary value as a string) is called binString(), I decided to call its companion function stringBin(). Sorry to disappoint you.
Continue reading
In my books, I use the binbin() function to display binary values. It’s a good way to demonstrate some of the C language’s low-level bitwise functions: The binbin() function lets you see the effect of bitwise operations at a binary level, all those ones and zeros.
Continue reading
Oh, I could have fun with the term “standard error device.” It could be any PCs running Windows 8. [rimshot] See? Tech humor! It’s nerdy, but that’s not the point of the standard error device with regards to C programming.
Continue reading
The process of opening, reading, writing, and closing files is basic C language stuff. For specific details about a file, the stat() function is used to fill a stat structure. Unfolded are the nitty-gritties about the file itself, such as its size, ownership, and up to four time-date stamps.
Continue reading