Showing 1-10 of 10 results
The If Else statement is the single most important program construct in C, and since you will create and use it in virtually every program, it is also the place you're most likely to run into...
Use the Switch statement in C to evaluate a large number of values for a single variable or expression. Switch can be much tidier than a long string of If Else statements.
Static variables are a useful part of C. They give you flexibility in making functions which return more complex data, but they can be tricky to understand and use effectively.
Arrays offer the most efficient method for storing lists of data in C. They're very easy for the programmer to create and use, and they're remarkably quick for the computer to access and update....
In C, a linked list allows you to create a list without deciding ahead of time how long it might be, and without wasting memory by allocating elements you don't have yet. The downside is that you...
Binary trees in C are a good way to dynamically organize data for easy searching. However, they require a lot of work to maintain.
C makes extensive use of memory pointers for handling arrays, function calls, data structures and much more. Knowing how to work directly with pointers is key to efficient C coding.
Create a while loop any time your C program needs to iterate over values or variables. With a few simple precautions, while loops can be easy and powerful.
Functions in C are the key to manageable structured programming. Every good program is written by taking the task and dividing it up into pieces, each of which becomes a function.
C does not initialize variables automatically, so if you do not initialize them properly, you can get unexpected results. Fortunately, C makes it easy to initialize variables when you declare them.