πŸ‡―πŸ‡΅ ζ—₯本θͺž | πŸ‡ΊπŸ‡Έ English
Advertisement

Lesson 1: What Is Programming?

What is programming? A clear, beginner-friendly introduction to the core concepts of C.

πŸ“– What to learn on this page
βœ… Must-know essentials
  • A program = a set of exact instructions for a computer
  • C is compiled: source β†’ translate β†’ executable
  • Ambiguous instructions won't work; be precise
⭐ Read if you have time
  • Compiled vs interpreted languages
  • History and uses of C
  • Why learn C today

What is programming?

A program is a set of instructions written for a computer. Programming is the act of creating those programs.

A familiar analogy: the recipe

Think of a cooking recipe: "chop the onion finely β†’ stir-fry in oil for 3 minutes β†’ add 1 tsp salt". Recipes are step by step, with concrete quantities. Programs are the same kind of thing β€” a sequence of unambiguous instructions.
Recipe 🍳
ingredients β†’ steps β†’ dish
skip a step, taste changes
Program πŸ’»
input β†’ processing β†’ output
skip a step, you get an error
Robot commands πŸ€–
"Walk 3 steps, turn right"
numbers and directions explicit

Programs are everywhere

Many things around you run on programs:

Four traits of a computer

⚑ Fast
billions of operations / sec
βœ… Exact
same input β†’ same output
πŸ’€ Never tires
repeats tasks forever
πŸ€” Doesn't "think"
it only does what you wrote
So programming matters: you must give the computer unambiguous instructions. "Do it nicely" or "go that way" β€” things that work between humans β€” don't work at all here.

Human vs computer — experience the difference

πŸ€–

Programming language — C

In this course we use programming language: C with development environment: Visual Studio.
File-name rule: C language → xxx.c. Not xxx.cpp (that extension is for C++).
C language
Since 1972. OS / embedded systems. Covered in this course.
Python
Popular for AI and data analysis.
Java
Enterprise systems and Android.
JavaScript
Web development. This site uses JS too.

Why learn C?

Even in the age of Python and JavaScript, there is plenty of reason to study C.
If you came from another language: Python's "it just works" won't be there. You manage pointers and memory yourself. That's hard at first, but once you clear it you'll understand what is happening under the hood of every other language too.

Compiled vs interpreted languages

Programming languages split into two broad execution styles.
πŸ“˜ Compiled
Translated ahead of time into an executable
Execution: fast
Examples: C, C++, Rust, Go
πŸ“— Interpreted
Translated on the fly while running
Slower but easier to iterate
Examples: Python, JavaScript, Ruby
C is a compiled language. You hand the source code to a compiler once, it produces an executable (a.out or hello.exe), and you run that.
Cooking analogy:
Compiled = translate the whole recipe into English once β†’ cook from the English version
Interpreted = a translator stands next to you and interprets each step as you go

The build / compile flow

A xxx.c file cannot be run as-is; it must be translated, i.e. compiled.
📝 Source code (hello.c)
⚙ Compiler (translates)
📦 Executable (hello.exe)
💻 Run & show result

What if an error occurs?

Compile error
Syntax is wrong — missing semicolon, unclosed bracket, etc.
Runtime error
Wrong result — division by zero, infinite loop, etc.

Try triggering an error

The code below has an error. Fix it and try running it. (Hint: semicolon)
error_demo.c
Output
Click "Run" to execute...
Advertisement

Related Lessons

Getting Started
Lesson 2: Hello World
Write your first C program and learn the compile and run flow.
Getting Started
Lesson 3: Variables
What are variables in C? Learn int, double, and char with visual diagrams.
Getting Started
Lesson 4: printf & scanf
How to use printf and scanf in C. A complete reference of format specifiers.
Next lesson →
Lesson 2: Hello World

Review Quiz

Check your understanding of this lesson!

Q1. Which is a correct characteristic of the C language?

It is an interpreted language
It is a compiled language
It is a scripting language

C is a compiled language: its source code is translated to machine code by a compiler before execution.

Q2. What is the file extension for a C source file?

.cpp
.c
.java

C source files use the .c extension. .cpp is for C++ and .java is for Java.

Q3. What is the process of translating a program into an executable form called?

Interpreting
Debugging
Compiling

Translating source code into machine code is called "compiling". The software that performs the translation is a "compiler".

Share this article
Share on X (Twitter) Share on Facebook Send on LINE Hatena
}); })();

Recommended Books to Deepen Your Understanding

Combine this interactive site with books for more practice.

πŸ“˜
Painfully Learning C
by MMGames
A classic C book for beginners. Builds solid fundamentals with clear explanations.
View on Amazon
πŸ“—
New Clear C Language (Beginner)
by Bohyoh Shibata
Plenty of diagrams and exercises. Widely used as a university textbook.
View on Amazon
πŸ“™
The C Programming Language, 2nd Ed.
by Brian Kernighan & Dennis Ritchie
Known as K&R. The original C book. Ideal after completing the basics.
View on Amazon

* Links above are affiliate links. Purchases help support this site.