C Programming Tutorial 20 – Intro to Data Types – Part 2

Don’t forget to read the last blog on data types! Are you new here? Start at the beginning, Intro to C!

There are other data types you will come across. One example is an array. An array can be used to store multiple values in one data type. So we could make an array of integers, which would be a collection of integers, where each are called elements of the array.

We can also create a character array. A character is just an individual letter, number or symbol from the keyboard.


Continue reading “C Programming Tutorial 20 – Intro to Data Types – Part 2”

C Programming Tutorial 19 -Intro to Data Types – Part 1

This blog is going to introduce the concept of data types. Don’t forget to read the last blog on Vim basics! Are you new here? Start at the beginning, Intro to C!

First, let’s define data. Data is any piece of information. Think of a variable. Let’s say we have a variable called tacos, and the value of this variable is 5. The 5 is a piece of data (datum). Now, each piece of data has an associated data type.

What is a Data Type?

A data type defines how the computer should treat a certain value.

As we learned before, integer division is completely different than double division.

5/2 = 2, but 5.0/2 = 2.5.


Continue reading “C Programming Tutorial 19 -Intro to Data Types – Part 1”

C Programming Tutorial 18 – Vim Basics – Part 2

In the last blog we talked about some tricks when it comes to moving around in Vim! This blog is going to teach you even more important things to help improve your efficiency. Are you new here? Start at the beginning, Intro to C!

The first thing I wanted to talk about was different ways to quit the application. The very first is



This is how you quit without saving. If you wanted to save your changes you could have used :wq, for write and quit, or a short cut is just ZZ without the colon. You should also know that anytime we have a : in our command it allows us to type out a larger command where we actually have to press enter. The other commands we learned about in the last video we didn’t have to press enter and they didn’t show up on the screen like this.


Continue reading “C Programming Tutorial 18 – Vim Basics – Part 2”

C Programming Tutorial 17 – Vim Basics – Part 1

Don’t forget to read the last blog about comments! Are you new here? Start at the beginning, Intro to C!

In this series we have been using Vim! Now, you don’t have to use Vim if you don’t want. That’s fine. I too am new to Vim. I just started using it this year. When I first started using it, I found it to be very annoying, like it made everything more complex than it had to be.

If you feel that way, I understand. But once you learn some of the commands, you can see that it’s not so bad. One of the huge benefits of using Vim is that it is widely available. This means that if you have to connect to another computer through the command line, the chances are you can edit text files on the remote computer using Vim. Cool.


Continue reading “C Programming Tutorial 17 – Vim Basics – Part 1”

C Programming Tutorial 16 – Comments

Don’t forget to read the last blog about using functions in C! Are you new here? Start at the beginning, Intro to C!

This blog is going to introduce you to the concept of comments. In general, comments are pretty easy to understand. I’m going to try not to waste your time by giving you some extra information relating to comments that may come in useful for you when you work on bigger projects.

To do a single line comment, use



Anything after that will be ignored.

The comment allows you to type in whatever you want and the compiler does not care if it is here. Run the program and see that it does exactly the same thing.


Continue reading “C Programming Tutorial 16 – Comments”

C Programming Tutorial 15 – Using Functions in C

Don’t forget to read the last blog about working with strings! Are you new here? Start at the beginning, Intro to C!

We’ve had a small number of videos so far covering C in general. The goal of the previous videos was largely to introduce you to a number of the beginning features of C. As we move on, we’ll go into a bit more detail.

One thing I will discuss in a lot of detail later on is called functions. I thought I would give a blog to introduce them to you so as we use them you are not totally confused.


Continue reading “C Programming Tutorial 15 – Using Functions in C”

C Programming Tutorial 13 – Basic Type Casting

Don’t forget to read the last blog about arithmetic expressions! Are you new here? Start at the beginning!

Let’s create another program to solve another math problem. This one is going to be a little less serious, because serious math can be boring sometimes.

We work for a chicken company who wants us to write software that tells them how many dozen eggs they produce in a day. So each night, a guy enters in how many eggs they have, and then the output is how many dozens that is. A dozen is just 12, so all we really have to do is divide the number by 12. Pretty simple, but it will illustrate a good programming point.


Continue reading “C Programming Tutorial 13 – Basic Type Casting”

C Programming Tutorial 12 – Arithmetic Expressions

In the previous blog, we learned how to take input and put it on the screen.  Now, let’s create a new variable, area, and make a formula! Are you new here? Start at the beginning!

Before we start working on that formula, we need to discuss operators. An operator is a thing that takes some value and does something with it. We’ve discussed the assignment operator. The assignment operator takes a value and assigns it to a variable.


Continue reading “C Programming Tutorial 12 – Arithmetic Expressions”

C Programming Tutorial 11 -Taking Input from User

In this blog we are going to discuss how to get a value for our variables from the user of our program.

Right now, this example is pretty simple. As we get into more complex programs, we are often going to want to ask the user for some value. Now, taking input can be a very complex and complicated topic. Because of this, I’ll be giving you just the basics to get you started.


Continue reading “C Programming Tutorial 11 -Taking Input from User”