C Programming Language Tutorial

Variables and Data Types

Input/Output

Looping and Selection Structures

Array

Functions

Preprocessing Command

Pointer

Structure

File Operations

Important Knowledge

Which C Programming Language Compiler (IDE) Is Suitable For Beginners?

Here we take "compiler" and "IDE (Integrated Development Environment)" as a concept and no longer distinguish. There are many integrated development environments for C programming language, especially under Windows, there are so many that beginners often don't know how to choose. In this section, we will explain the three platforms of Windows, Linux and Mac OS.

How to choose IDE under Windows?

There are many IDEs under Windows, and the common ones are as follows.

1) Visual Studio

Under Windows, it is recommended that you use Visual Studio (VS for short) developed by Microsoft. It is the standard IDE under Windows, and everyone is using it in actual development.

In order to adapt to the latest Windows operating system, Microsoft will upgrade VS every once in a while (usually one or two years). The different versions of VS are named after the release year, for example VS2017 was released by Microsoft in 2017 and VS2019 was released by Microsoft in 2019.

However, VS is a bit huge, and the installation package has 2~3G, which is inconvenient to download, and will install many tools that are not used temporarily. The installation time is about half an hour.

As of now, the latest version of VS is VS2022. For beginners, I do not recommend using the previous version of VS2015. It is recommended to install a newer version of VS, such as VS2019. Readers who like early adopters can also choose VS2022.

2) Dev C++

If you hate the complexity of VS, then Dev C++ is the way to go. Dev C++ is a free and open source C/C++ IDE with embedded GCC compiler (Windows port of Linux GCC compiler). The advantages of Dev C++ are its small size (only tens of megabytes), easy installation and uninstallation, and low learning costs. The disadvantage is that the debugging function is weak.

3) Visual C++ 6.0

Visual C++ 6.0 (VC 6.0 for short) is a classic IDE developed by Microsoft. Many colleges and universities use VC 6.0 as a teaching tool to explain C and C++. However, VC 6.0 is a product from 1998, which is very old. There will be various compatibility problems under Win7, Win8, and Win10, and it may even not run at all, so it is not recommended.

4) Code::Blocks

Code::Blocks is an open source, cross-platform, free C/C++ IDE, which is very similar to Dev C++, small and flexible, easy to install and uninstall, but its interface is a bit more complicated than Dev C++, not as refreshing as Dev C++ .

5) Turbo C

Turbo C is an ancient C programming language development tool in the DOS era. Programmers can only use the keyboard to operate Turbo C, but not the mouse, so it is very inconvenient. But Turbo C integrates a set of graphics libraries, which can draw pictures in console programs, which looks very cool, so people are still using it today.

How to choose IDE under Linux?

Under Linux, you can not use IDE, just use GCC compiler and a text editor (eg Gedit), which is very helpful for beginners to understand the generation process of C programming language programs.

Of course, if you want to use an IDE, then you can choose CodeLite, Code::Blocks, Anjuta, Eclipse, NetBeans, etc.

How to choose IDE under Mac OS?

It is recommended to use Xcode officially developed by Apple under Mac OS, which can be downloaded from the APP Store.

In addition, Visual Studio has also launched a Mac version, users who are accustomed to Visual Studio can be happy.