Skip to content
Learn Netverks

Lesson

Step 2/36 6% through track

what-is-c

What is C?

Last reviewed Jun 1, 2026 Content v20260601
Track mode
server_compiled
Means
Compiled runner
Reading
~2 min
Level
beginner

This lesson

This lesson teaches What is C?: the syntax, patterns, and safety habits you need before advancing in C.

Teams still ship What is C? in C codebases—skipping it leaves gaps in debugging and code reviews.

You will apply What is C? in contexts like: Kernels, drivers, embedded devices, and performance libraries used by other languages.

Write C in main.c with int main(), click Run on server—the dev runner compiles with cc/gcc -std=c11 and runs the binary; read stderr for compile and linker errors (LEARNING_RUNNER_ENABLED=true).

After variables and functions in JavaScript or Java—C is low-level; prior imperative experience is strongly recommended.

C is a procedural systems language created in the 1970s. It still powers Linux kernels, SQLite, Redis, Python and Ruby interpreters, and countless embedded devices.

Core characteristics

  • Compiled to native code — no VM; the CPU runs your instructions directly
  • Manual memory model — stack variables auto-expire; heap blocks need malloc/free
  • Minimal runtime — small libc; no built-in classes or exceptions
  • Portability — source can compile on many platforms with a standards-conforming compiler

Typical build-run flow (local)

  1. Write main.c with int main(void)
  2. gcc -std=c11 -Wall -o main main.c
  3. ./main runs the native binary

Important interview questions and answers

  1. Q: Is C garbage collected?
    A: No—stack memory ends at scope; heap memory must be freed explicitly (or managed by conventions in higher-level wrappers).
  2. Q: Why learn C today?
    A: It explains how machines and OSes work; many languages and tools are built on C ABIs and libc.
  3. Q: C vs C++?
    A: C is a smaller procedural language; C++ adds OOP, templates, and a much larger feature set on top of a C-compatible subset.

Self-check

  1. What file extension do C source files typically use?
  2. Name one widely used project written in C.

Interview prep

Is C garbage collected?

No—stack variables end at scope; heap blocks from malloc must be freed with free. There is no tracing GC in standard C.

Who still uses C?

Linux kernel, SQLite, Redis, Python interpreter, embedded firmware vendors, and countless libraries exposing a stable C ABI.

Interview tip Lesson completion confidence

Can you explain this lesson in 30 seconds without reading notes?

Not saved yet.

Playground

Runs on the configured server runner (dev: npm run runner with LEARNING_RUNNER_ENABLED=true). Output appears below the editor.

Check yourself

Multiple choice — immediate feedback.

Discussion

Past discussion is visible to everyone. Only logged-in users can post comments and replies.

Starter discussion topics

  • C vs C++ when?
  • Still relevant why?

Sign up or log in to post comments and sync lesson progress across devices.

No discussion yet. Be the first to ask a question.

Jump