static is a keyword in the C programming language. It can be used with variables and functions. What is a static variable? By default, variables are local to the scope in which they are defined. Variables can be declared as s…
C functions are simple, but because of how C works, the power of functions is a bit limited. Functions receive either a fixed or variable amount of arguments. Functions can only return one value, or return no value. In C, argum…
While loops are similar to for loops, but have less functionality. A while loop continues executing the while block as long as the condition in the while remains true. For example, the following code will execute exactly ten ti…
For loops in C are straightforward. They supply the ability to create a loop - a code block that runs multiple times. For loops require an iterator variable, usually notated as i . For loops give the following functionality: …
Defining strings Strings in C are actually arrays of characters. Although using pointers in C is an advanced subject, fully explained later on, we will use pointers to a character array to define simple strings, in the followin…