Math in your C source code is brought to you by the +, –, *, and / operators. These are the basic math symbols, with the exception of * and /, mostly because the × and ÷ characters aren’t found on the[more…]

Code::Blocks integrates the GNU debugger, which is one of the most popular debuggers available for programming with C. As long as you create a project by including debugging information, you can use the[more…]

Sometimes, the problem with your C programming instructions can’t be determined by merely watching program flow. Nope, you have to get down and dirty in memory and look at a variable’s value while the[more…]

The most basic multi-module monster project in C programming has two source code files. Each file is separate — written, saved, and compiled individually — but eventually brought together as one unit by[more…]

The best way to share a variable between several functions in a huge C programming project is to make that variable global. The global variable needs to be declared in only one module, usually the main[more…]

As multi-module projects in C grow more complex, you find the first part of each source code file growing longer and longer: More prototypes, more constants, and more global variables and structures are[more…]

The C language’s variable types must be specific. Depending on the information stored, you may want to use one of these more detailed variable declarations. Here is a buffet of C language variable types[more…]

Variables vary, so their contents can be changed at any time in the program. In your C programming journey, variables are declared, and then their values may be, well, whatever. Not only that; it’s possible[more…]

The getchar() and putchar() functions of the C programming languagework with integers, but that doesn’t mean you need to shun the character variable. The char is still a variable type in C. When you work[more…]

When a C program needs text input, it’s necessary to create a place to store that text. Right away, you’ll probably say, Golly! That would be a string variable. If you answered that way, you’re relying[more…]

For the input of specific types of variables in the C programming language, you’ll find that the scanf() function comes in handy. It’s not a general-purpose input function, and it has some limitations,[more…]

The C programming integrated development environment Code::Blocks organizes its projects into folders. The primary folder is given the project’s name, such as ex0201. Within that folder, you’ll find all[more…]

Computers deal with both numbers and text. In C programming, text comes in the form of individual characters or a parade of characters all lumped together into a string. Numbers are pretty much numbers[more…]

Even with C programming, computers and their electronic brethren enjoy doing repetitive tasks. In fact, anything you do on a computer that requires you to do something over and over demands that a faster[more…]