c programming
C Programming Decimal Equivalent of Letters
In C, each letter is actually a decimal, with a difference of 32. To make ‘z’ an uppercase, you would subtract 32 from it, giving us ‘Z’.
C If, Else if, Else Tutorial
This is a very funny tutorial laying out the ‘If, Else if, and Else’ options in C programming.
Which Variable Type Do I Use in C?
How should I decide which integer type to use?
If you might need large values (above 32,767 or below -32,767), use long. Otherwise, if space is very important (i.e. if there are large arrays or many structures), use short. Otherwise, use int. If well-defined overflow characteristics are important and negative values are not, [...]
Easier Syntax for C Loops
While it is common knowledge that to create a while loop in C you would use the following,
counter = counter + 1;
There are two even easier ways to do the above,
counter += 1;
and an even easier loop statement would be
counter++;
Follow my C Programming Language with me in Class
I am currently taking a C Programming Language class at my alma mater, The University of Louisville, in preparation for hours spent waiting for the door to be open before class starts. You can view my online class notes updated each Mon and Wed located here in my Google Doc for class notes. Also review [...]
C Variables
To use a variable in C Language, you must first declare a name and type. There are four types of variables with C Programming as we can see below,
int (stands for integer, i.e. 2, 44, 90, etc)
float (standing for floating point variable, i.e. 1.33, 2.44444, etc)
double (stands for double percision, a difficult way of saying [...]
Compiling C File in Mac
To run a c file in Mac, most versions, and using Terminal, please use the following code to run your program:
Desktop/main.c -o Desktop/main
Desktop/main
With main.c being your file you are working on.

