Online Test Banks
Score higher
See Online Test Banks
eLearning
Learning anything is easy
Browse Online Courses
Mobile Apps
Learning on the go
Explore Mobile Apps
Dummies Store
Shop for books and more
Start Shopping

C

View:  
Sorted by:  

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

How to Create Multiple Variables in C Programming

The variable is truly the heart of any programming language, including C, by allowing you to code flexibility into your programs and have it do amazing things. [more…]

How to Use Character Input/Output in C Programming

The simplest type of input and output in C programming takes place at the character level: One character goes in; one character comes out. Of course, getting to that point involves a wee bit of programming [more…]

How to Make a Simple Comparisons in C Programming

You make comparisons all the time, so you shouldn’t avoid comparisons in C programming. What will you wear in the morning? Should you avoid Bill’s office because the receptionist says he’s “testy” today [more…]

How to Use the if Function in C Programming

The if keyword in the C programming language is used to make decisions in your code based upon simple comparisons. It’s the same concept humans use in making decisions based on the question “what if?” [more…]

How to Write Multiple Decisions in C Programming

Not every decision is a clean-cut, yes-or-no proposition. Exceptions happen all the time. The C programming language provides a few ways to deal with those exceptions, allowing you to craft code that executes [more…]

How to Create Multiple Comparisons with Logic in C Programming

Some comparisons you will want to make when programming with C are more complex than those presented by the simple operators. For example, consider the following math-thingie: [more…]

How to Use the Switch-Case Structure for Multiple-Choice Decisions in C Programming

Piling up a tower of if and if-else statements in C programming can be effective, but it’s not the best way to walk through a multiple-choice decision. The solution offered in the C language is known as [more…]

How to Use the ?: Decision-Making Function in C Programming

Perhaps the most cryptic of the decision-making tools in C, ?: is a favorite of programmers who enjoy obfuscating their code. It generates results based on if-true and if-false statements. [more…]

How to Use for Loops in C Programming

A loop is simply a group of statements in your C code that repeats. The for keyword helps set up that basic type of loop. [more…]

How to Use while Loops in C Programming

Another popular looping keyword in C programming is while. It has a companion, do, so programmers refer to this type of loop as either while or do-while. The C language is missing the do-whacka-do type [more…]

How to Create Nested for Loops in C Programming

With C programming, you can stick inside a for loop is another for loop. It may seem crazy to loop within a loop, but it’s a common practice. The official jargon is [more…]

How to Construct a Function in C Programming

In C programming, all functions are dubbed with a name, which must be unique; no two functions can have the same name, nor can a function have the same name as a keyword. [more…]

How to Create Endless Loops in C Programming

Beware the endless loop! When a C program enters an endless loop, it either spews output over and over without end or it sits there tight and does nothing. Well, it’s doing what you ordered it to do, which [more…]

How to Prototype a Function in C Programming

What happens when you don’t prototype? As with anything in C programming, when you goof up, the compiler or linker lets you know with an error message — or the program just doesn’t run properly. It’s not [more…]

C Programming: How to Use Variables in Functions

In C programming, functions that use variables must declare those variables — just like the main() function does. In fact, it’s pretty much the same thing. The big difference, which you need to remember [more…]

How to Send Values to Functions in C Programming

In C programming, the key way to make a function funct is to give it something to chew on — some data. The process is referred to as passing an argument to a function, [more…]

How to Create Functions that Return Values in C Programming

A great majority of the C language functions return a value; that is, they generate something. Your code may not use the values, but they’re returned anyway. [more…]

How to Instruct a Function to Exit Early in C Programming

In C programming, the return keyword can blast out of a function at any time, sending execution back to the statement that called the function. Or, in the case of the main [more…]

How to Generate Random Numbers in C Programming

One mathematical function in C programming that’s relatively easy to grasp is the rand() function. It generates random numbers. Though that may seem silly, it’s the basis for just about every computer [more…]

How to Use Arrays in C Programming

In the real world, information comes individually or in groups. You may find a penny on the road and then a nickel and maybe a quarter! To handle such fortunes in the C language, you need a way to gather [more…]

How to Work with Empty char Arrays in C Programming

Just as you can declare an empty, or uninitialized, float or int array, you can create an empty char array with C programing. You must be precise, however: The array’s size must be 1 greater than the maximum [more…]

How to Sort Arrays in C Programming

With C programming, computers are designed to quickly and merrily accomplish boring tasks, such as sorting an array. In fact, they love doing it so much that “the sort” is a basic computer concept upon [more…]

How to Use Multidimensional Arrays in C Programming

When you need to describe items in the second or third dimension, you can use C programming to conjure forth a multidimensional type of array. [more…]

How to Declare an Initialized Multidimensional Array in C Programming

In C programming, the dark secret of multidimensional arrays is that they don’t really exist. Internally, the compiler still sees things as single dimensions — just a long array full of elements. The double [more…]

Listings:1-2526-5051-7576-100more...

Sign Up for RSS Feeds

Computers & Software
Win $500. Easy. Enter to win now.

Inside Dummies.com

Dummies.com Sweepstakes

Win $500. Easy.