 Okay, this is a tutorial on C programming. It's a series I'm going to try to keep each video as short as possible. So let's get straight to it. I'm running on a Debian system, but whatever distro you're using, use your package manager. The only package you should have to install for most of these tutorials is we're using GCC as our compile. So sudo apt install GCC or whatever you use as your package manager. I already have that installed. So I'm going to go ahead and I'm going to use Vim as my text editor, but use whatever text that you like. And I'm going to create a file called hello.c. And we're going to do our first little hello world. So in here, I am going to do my first line. I'm going to say pound include, and then space and inside these greater than less than symbols. I'm going to say stdio standard in out header, and that's going to give you all your basic little commands. Now we need our main function. Your main function is going to be the function that runs in first in your C program. And then if you have other functions, you will usually be called by main or one of those sub functions. So what we're going to do here is we're going to say int for integer function. It's going to return something. It's going to return either a zero or one, whether it failed or was successful, or hopefully only going to be successful because all we're going to do is say printf. And in parentheses here, and we're going to end each command with a semicolon in quotations. We're going to say hello world. Now then we want to return zero, meaning success. It made it to this part. It's successful. Now I did not put a new line character at the end of this, and printf does not. So what does that mean? So I'm going to save this, and I'm going to use gcc to compile this. So gcc, the name of my C file, dash o for output, and we'll call our executable hello. If you're on a Windows machine, you'll want to do hello.exe. So we'll do that, and I forgot to put a semicolon at the end of this command here. Now we should be able to compile that, and I should be able to dot slash, dot slash on a Linux or Unix based or Unix like system just means it's a command in this directory. So we're saying dot slash this hello. So if there's a hello somewhere else in your system, it's not looking for that, it's going to run this one. It's going to run that and says hello world. Now you see this little percent sign? In my particular shell, that's what's showing, there was no new line character. What does that mean? So I'm going to go back in here. If I copy this command, so now it should say hello world, and then hello world, I'll save that, run our gcc command again, it will override without any prompting, so make sure you want to override your executable. I'll do dot slash hello again, and you can see it said hello world, hello world without any new lines. So if you want to have a new line character at the end of your text, which I would say most of the time you probably do, you want to use backslash end for new line character. So I'll add that, and I will now say gcc hello dot c dash o for output or hello, so I'm recompiling it, and dot slash hello, and you can see now it's on new line, on new line, and then create a new line before doing my prompt again so we don't have that little percent symbol. Depending on your shell you'll either get something like this, or this prompt right here will actually be up here. So you want that new line character in many cases, but it all depends on your code. That's it for today. Thank you for watching. Please visit filmsbychrist.com. That's Chris of the K. There should be a link in the description. And if you go to gitlab.com, forward slash metalx1000, forward slash my bin with a capital M and a capital B. Here's a bunch of just sample coaches, random little scripts I've written. And in this project there's a C folder. Click on that, and there's one called tutorials. You click on that, and it will have all the ones we're going through. So you can download this package, this project, and this hello command here is basically what we just did. So you can download those. There's a compile all that SH here that just loops through them and compiles them into this bin folder here. So we'll have the xcobill2, obviously compiled from my architecture and operating system. But yeah, so if you want to have a look at these codes, this is the stuff we're going to be going through. And there's actually going to be more. I just got ahead and made sure I knew what I was doing before I got to those. So thank you for watching. Again, check out the link in the description for this page and my website, filmsbychrist.com. And as always, I hope that you have a great day.