Sorted by:  

How to Write and Test Source Code in C

Source code represents the part of the process that contains the programming language itself. You use a text editor to write a source code file. [more…]

Basics of a Typical Program in C

All C programs feature a basic structure, which is easily shown by looking at the C source code skeleton that Code::Blocks uses to start a new project. [more…]

How to Do Simple Arithmetic with C Programming

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…]

How to Use the Code::Blocks Debugger with C Programming

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…]

How to Examine Variables with Code::Block Debugger for C Programming

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…]

How to Solve C Programming Problems with printf() and puts()

When you can’t figure out what’s going on with a C program and you don’t want to run it through the debugger (or when you didn’t include the debugging build option), you can use the printf [more…]

How to Link 2 Source Code Files with C Programming

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…]

How to Share Variables between Modules When Programming in C

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…]

How to Create a Custom Header File in C

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…]

How to Use Specific Variable Types in C

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…]

How to Reuse Variables when Programming in C

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…]

How to Use Variables when Programming in C

Most, if not all, of your future C language programs will employ variables. There are basic three steps for using variables in the C language: [more…]

Basics of Variables for C Programming

Your C programs can use two types of values: immediate and variable. An immediate value is one that you specify in the source code — a value you type or a defined constant. [more…]

How to Work with Character Variables in C Programming

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…]

How to Store Strings in C Programming

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…]

Basics of the scanf() Function in C Programming

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…]

How to Use the fgets() Function for Text Input in C Programming

For a general-purpose text input function in the C programming language, one that reads beyond the first white space character, try the fgets() function. Here’s the format: [more…]

Basics of Code::Blocks Project File Accounting for C Programming

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…]

Basics of the C Programming Language: Keywords, Functions, and Operators

Unlike a human language, C has no declensions or cases. You’ll find no masculine, feminine, or neuter. And you never need to know what the words pluperfect [more…]

Basics of the C Programming Language: Variables and Values, Statements and Structure, and Comments

Like communicating with any human, you have to know the language in order to communicate with a computer. In computer programming, many people use C as the programming language. [more…]

How to Display Something on Screen with the C Programming puts() Function

When you’re programming in C, you may want your computer to display something on the screen. The puts() function sends a stream of text to the standard output device. [more…]

How to Add Text to a puts() Function in C Programming

When you need to display another line of text, use your C programming skills to conjure up another puts() function in your source code, as shown in Displaying Two Lines of Text. [more…]

How to Use the printf() in C Programming

The puts() function is but one of many functions in the C programming language that sends text to the standard output device. A second, more popular and versatile function is printf [more…]

Basics of Values in C Programming

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…]

How to Use Constants in C Programming

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…]


Sign Up for RSS Feeds

Computers & Software
Win $500. Enter Now.

Inside Dummies.com