Hello everyone, my name is Atharva Singh, and we are continuing with the C programming language course. (pause 8 sec)
In the last video, we saw what is a program, programming and programming languages.
After that we saw that what are the different types of programming languages, what is the need to learn the programming languages?
After seeing all these things, we also saw why it is necessary to learn the C programming language and after that we saw one basic C program.
In which, to the left there was a C program and to the right, our C programs output was being displayed.
After knowing all these things, there is a question that comes up. How does the C programming language run in our system, in our PC and in our laptop, how will it run?
We will learn all these things in this video.
So, without any delay we will start, how to set up a C environment in our systems.
So, first of all we will see what a text editor is.
Basically, to run a C program in our computer, we need two things, first is the text editor and the second thing would be one compiler, which means a C compiler.
So, first of all we will see what this text editor is, like we had seen in the last video.
Our C program was in text form, which means it was typed with the help of a keyboard, it was in a written format.
So, where will we type that, this text editor provides the platform where we can type, our C programming language code, the program and the set of instructions.
This text editor gives us a platform where we can type our instructions or programs.
“Application used to type your program is called a text editor.”
Now, there are a lot of examples of it.
In the market there are numerous types of text editors, like Windows notepad, Visual Studio Code, Notepad++ and there are many more.
But in this course, majorly we will make use of Visual Studio code.
Now I have told you what a text editor is, there is one more thing which I would like to tell you, like there are different programming languages like C programming language, C++, Python and there are many other programming languages.
All these programming languages you can type in the text editor, okay.
So, the text editor basically gives you a format or you can say that it gives you a space where you can type your program.
Now, the different programming language’s program that you're writing, how you can write it in one text editor.
So, the text editor will be the same for every programming language, what will change is the compiler.
Like you're writing a program for a C program language you will have to use a C compiler.
If you're writing code for C++ programming language, you will use the C + + compiler.
In the same way, Python will have its different interpreter or compiler.
In the same way different programming languages will have different compilers.
Text editor will be similar or the same for each one of them, where you will type your code or your program, but the compiler will change for every programming language.
In this course, we will be using Visual Studio Code as a text editor.
Going ahead, we will see that the C program that we have, the C compiler for it, what will that be?
C compiler, I had told you that to use the C programming language completely, we will need 2 things.
First will be a text editor, and second will be a C compiler.
What is this compiler?
You have written your program in a text editor, you have given your instruction in your own language, that is in English, you have typed it out.
But who will explain this to our computer?
We have written it in English, and we know that which is the language that our computer understands, its binary language means the language of zeros and ones, the computer understands that language.
The program that we have written in English, the instructions that we have written.
Who will convert it?
Our C compiler will convert it into binary language, and our computer will understand it and respond and act accordingly.
Basically, what is the C compiler?
It will compile the text editor with our program.
It will gather it in one place and then it will convert it and explain it to the computer.
So basically, this is the work of a compiler.
Now since we are learning the C programming language, we will have to download and install a C compiler.
Apart from that if we were using some other programming language, for that there are different compilers.
So, “a program written by us, needs to be converted” and that conversion is made by a C compiler.
An example is GCC compiler.
In this course, we will be using a GCC compiler because of the C programming language, whatever we type in the text editor, it can get converted and can be easily understood by our computer.
For that we will use the GCC compiler.
Now, we have seen both the things.
One was the text editor.
We saw which text editor we will be using. We will be using Visual Studio Code, as a text editor for writing our code, second was C compiler.
Which is the compiler that we are using?
We are using the GCC compiler.
Both these things I will have to download and install on our computer, in our system.
So, how will we do that?
Come, let's understand that.
First part would be downloading the compiler.
How will we download the compiler?
First of all the link that you are seeing here, you will have to open this link in your browser.
I've already opened this link.
So, I will go and open it.
So, this is the link that I was displaying you there, which will be used to download C compiler.
This is basically Min G W Distro, nuwen dot net, this is a website.
It is basically a third-party website, which will help us to download our compiler.
Now, how can we download it?
Even when you will open this link in your system, you will be able to see this kind of website.
You don't have to do much. You just have to go in this option where it is written, Min GW 17 dot 1 without git dot EXE.
Since we don't have to install git, that's the reason why we will select this option.
If we were to install git along with this, we would have installed the first option.
So, basically this 45.1 MB file which is there.
We will have to download it, there is a simple process to download it.
We will single click on it and you can see that here the download has been started.
Simply it will get downloaded.
It will take some time.
We will see how much time it gets installed or downloads.
Our compiler or Min GW 17.1 file, has been downloaded successfully.
This file extension would be dot EXE, like you can see here.
Now, we will simply click on this arrow, we will go in, show in the folder and you will be able to see this folder over here.
Now, you don't have to do anything, you have to double click on it and it will start loading, it will ask you where do you have to extract it.
Which means, where do you have to install this compiler?
So, you follow the steps like mine, you don't have to do much, you have to remove whatever is written in front.
You have to just keep C, colon, backslash, in extract to the window.
Like I have written here C, colon, backslash, now I will click on extract to button.
Now, the file that I've downloaded.
This I have already downloaded.
So, I don’t need to download it.
So, I will do one thing.
I will let this process get completed, as soon as this process gets completed, our compiler will get installed.
After the compiler gets installed.
We will see the further process now.
So, my compiler has been installed.
And how will we check it now?
We will go into our C drive in this PC, our new volume, the C one option…
We will go into it.
You will see a Min GW named folder, you don't have to do much, you have to double click it and open it.
After that you will see the first folder in the name of bin.
You have to open even that and just have to do a single click.
Basically, you will be able to see the path here to the bin folder.
Now, you have to copy this path, right click and copy it, after copying it, the process that is there, I will show it to you.
You will have to again go into “this PC”, in “this PC”, the blank area that you're seeing below.
Here you will right click, after right clicking, you will see one option below of properties.
Click on these properties.
So, the properties windows will be opened.
We have to go into this option, which is, advanced system settings.
We will click on that. The advanced system settings have opened.
Now, we will have to go here, in environment variables, we will click on environment variables and we will see here, user variables for Atharva.
Whatever is your computer’s name, there you would see this.
You don't have to do much here, you have to click on the path, okay.
After clicking on the path, you have to go to the edit option, after clicking on edit, you will see a new button over here, you will have to click on the new one, the path that we had copied from there you will paste it here by right clicking.
So, this has been pasted.
Since I had already put it here, so this time I will not put it on.
Even if I put it on, it won't make much of a difference.
So, we have to simply say okay to this.
Even in this window we have to click okay, and close it.
Okay, okay, okay.
So, we have said okay to all the windows and we have closed them.
The compiler that you have, it has been installed in your system, in your computer.
How can you check it?
You simply have to go in the start menu, and press CMD here and you have to open the command prompt.
As soon as you open this command prompt, you will type here, GCC space hyphen, hyphen and version.
As soon as you type this command over here, and you press enter, something like this will be displayed, where it will say, GCC version 8.1.0.
So, this version’s compiler has been installed in your system.
It means that we have successfully installed the C compiler in our system.
After installing this, our second process would be to install our Visual Studio Code.
How will we be able to do it?
That we will see here.
We have downloaded the compiler, now we will go here and see how the text editor can be downloaded.
So, first of all, what you have to do is open any browser and go on the web and you have to type there what it is saying, “Visual Studio code download.”
This Visual Studio code I have already searched on my web page.
I will close this, you have to click on the very first link.
This link will open.
And whichever is your system, Windows, Linux or Mac.
Whichever is your system, you can click on that option.
Since, I am using windows here.
I will click on windows.
Automatically, it will start the VS code, it means the visual studio code’s setup will start downloading.
This will get downloaded, it will take some time.
So, the setup of the Visual Studio has been completed.
Now, what we will do is, we will again click on this arrow and we will go into the show folder, here our setup has come.
Now, we will double click and open it.
As soon as we open it our install wizard will open.
It has opened.
Here you have to check, “I accept the agreement”, after that you have to press next.
You have to pay attention, that this add to path option is there, where it's written in brackets “requires the shell to restart”, this option should be checked, that means that there should be a tick on this option, there is a tick here so we will press next.
Now the last option that was there, install, now we will install it.
Again, it will take some time for installation, till that time we will wait for it.
So, our Visual Studio Code has been installed.
Now, we will click on launch and we will launch it.
Our visual studio code has opened, even for you, a similar kind of window will open.
So, our text editors have opened.
Basically, we have to type our codes and programs here and execute them.
Now, there are two things that you will have to install in the Visual Studio code as an extension.
For that you have to click on the extension option, I go there and I click on it.
Here you will get an option to search the extension, here you will have to click enter here, C slash C plus plus.
So, you will see the first option, the extension named IntelliSense.
I will click on it and here you will see the option of installing, in this way.
You'll have to click on install and install it.
It will take one or two seconds for installation.
This will get installed.
This has been installed as I am seeing only the uninstall option here.
Now, I will install the other extension.
The other extension’s name is “Code runner”.
So, we will also have to download even this extension.
In the similar way you install even this.
I have already installed it here, that is the reason I am seeing the uninstalled option.
So, code runner and C slash C plus plus, these 2 extensions, we will install in visual studio code.
After these 2 things, you don’t have to do much.
Our setup for the C programming language has been completed.
Which means that we have set up the text editor and our GCC compiler also we have completely installed.
How did we check that?
We went into the command prompt, and we put there a command, GCC hyphen, hyphen version and then it told us that the GCC that you have installed is this version, has been installed in our computer or system.
If you have any queries or comments, click the discussion button below the video and post there. This way, you will be able to connect to fellow learners and discuss the course. Also, Our Team will try to solve your queries.
After this will come the part after completing the setup, that will be the First program in C part.
So, we will first of all go on to make a C programming language.
Thank you till that time.
Very happy 😄😁
Very happy and greatful, thank you , great course.
Super for poor students to learn software course languages TQ