Getting Started with C

Let's start with a brief history of C and discover how to write the Hello World program in C.

What is C?

C is a high-level programming language that was developed by Dennis Ritchie at Bell Labs in the early 1970s. It provides fine-grained control over hardware interaction, allowing for highly optimized code. Because of this reason, it has always been popular for systems programming.

It’s been the language of choice for writing operating systems. Unix was one of the first operating systems to be rewritten in C (initially, it was written in Assembly language). The core codes of Microsoft Windows, Mac OS X, and GNU/Linux are also written in C, although these operating systems may also use other languages for various components.

C has found other uses as well. It’s useful for high performance computing. Compilers and interpreters for several high-level languages like Perl, PHP, Python, R, Matlab, Mathematica, etc., are also written in C.

A program in C

Here’s an example of a C program:

Create a free account to access the full course.

By signing up, you agree to Educative's Terms of Service and Privacy Policy