Download VS Code and run C programming
Why we use VS Code?
VS Code is a compiler which is used to perform a program in any language i.e. C, C++, Java, Python, etc. VS Code facilitates writing a program when we install the extension which helps us to correct or suggest writing a program.
Steps to download VS Code:
- Open any search engine like google, bing, etc.
google search of VS Code |
- Search VS Code
- Then we will click on the link or you can click here to reach on the Visual Studio website.
- This provides the option for Windows, Linux, macOS. You can download based on the application you are using.
- After you download, install it.
Method for using C in the Visual Studio code.
To use C in VS Code, we need to download gcc from the VS Code website.
Step to download gcc are as follows:
- Once we have clicked Download VS Code, we will go to the next page.
- There we will see a sidebar in which there were many options.
- We will click on C++.
- On clicking C++, there will open many options.
- Next, we'll select gcc for Windows or any of the application you use.
- On the third point of prerequisites, there will be a link Mingw-w64 or you can directly click here
- After the download of gcc, then install it.
To do this step we have to follow the following steps:
- After installation of gcc, we will go to This pc on desktop.
- go to drive c, then go to program file(x86)
- Then click on mingw-w64, then click on i686-8.1.0-posix-dwarf-rt_v6-rev0
- Then click on mingw32, then click on bin
- Now copy the path as it appears in the picture above.
- Now right-click on This pc, and then select Advanced system settings.
- Then click on Environmental variables.
- Then select path and Click on Edit.
Example of C program in VS Code |
Nice Blog, it is very Impressive.Keep Sharing With us.
ReplyDeleteBest C++ Online Course
c c++ training institutes in chennai
c c++ training in coimbatore