Программирование на C
От printf до указателей, памяти и структур данных — напишите код в своем браузере и скомпилируйте его на наших серверах.
- c
- 23 Уроки
- 23 videos
- Работает в вашем браузере
На этом устройстве: завершено 0 из 23 уроков
Каждый урок работает в вашем браузере — пишите реальный код, нажимайте «Выполнить», и задания проверяют себя сами. Бесплатно, регистрация не требуется, с переведёнными заметками, сопоставленными с английским языком.
Уроки в этом курсе
Показано 27 из 27 уроков
Никакие уроки не совпадают. Очистите поисковый запрос или выберите другой фильтр.
- Основы C: main, printf и функции C — компилируемый язык · Каркас программы на C · printf и типы данных Lesson 1 · 3 обязательных заданий · ★ Видео
- Variables, types, and arithmetic Every value has a type · Doing arithmetic · Integers divide differently · Reading input Lesson 2 · 3 обязательных заданий · ★ Видео
- Booleans and selection: if, else, switch True and false in C · Comparing and combining · if / else if / else · switch: choosing among many values Lesson 3 · 3 обязательных заданий · ★★ Видео
- Loops: while, for, and accumulation Repeating work · while loops · for loops · Accumulation and counting Lesson 4 · 3 обязательных заданий · ★★ Видео
- Functions, parameters, and return values Why functions · Parameters and return values · void functions, and building big from small · C copies your arguments Lesson 5 · 3 обязательных заданий · ★★ Видео
- Nested loops and patterns A loop inside a loop · Rows and columns · Building a line, then a block · Counting with nested loops Lesson 6 · 3 обязательных заданий · ★★★ Видео
- 1-D arrays: store, index, and traverse A row of boxes · Indexing from 0 · Traversing with a loop · Arrays don't know their own length Lesson 7 · 3 обязательных заданий · ★★ Видео
- Pointers: &, *, and pass-by-pointer A problem from last lesson · Every variable has an address · A pointer holds an address · Out-pointers: giving back more than one answer Lesson 8 · 3 обязательных заданий · ★★★ Видео
- Strings: char arrays and the null terminator Text is an array of chars · The invisible terminator '\0' · Walking a string · The <string.h> toolbox Lesson 9 · 3 обязательных заданий · ★★★ Видео
- Array algorithms: max, count, search, average Four classic array jobs · Finding the maximum · Counting with a condition · Linear search Lesson 10 · 4 обязательных заданий · ★★★ Видео
- 2-D arrays: working with a grid A grid of boxes · Rows then columns (row-major) · Passing a 2-D array · Working one row at a time Lesson 11 · 3 обязательных заданий · ★★★ Видео
- Searching: linear and binary Two ways to search · Linear search · Why sorting enables binary search · low, high, mid Lesson 12 · 3 обязательных заданий · ★★★ Видео
- Sorting: bubble, selection, and insertion Putting an array in order · Swapping two elements · Bubble sort · Insertion sort Lesson 13 · 3 обязательных заданий · ★★★★ Видео
- Recursion: base case and recursive case A function that calls itself · The base case · The recursive case · Recursion over an array Lesson 14 · 3 обязательных заданий · ★★★★ Видео
- Structs and typedef: . vs -> Grouping related data · struct and typedef · Member access with . · Through a pointer with -> Lesson 15 · 3 обязательных заданий · ★★★ Видео
- Dynamic memory: malloc, free, and realloc Stack memory vs heap memory · malloc and sizeof · free and memory leaks · Growing an array with realloc Lesson 16 · 3 обязательных заданий · ★★★★ Видео
- Связные списки Nodes joined by pointers · A self-referential struct · head and the NULL end · Adding a node at the front Lesson 17 · 3 обязательных заданий · ★★★★★ Видео
- Stacks and queues (array-backed) Two ways to hold items · A stack is LIFO · Array-backed stack · A queue is FIFO Lesson 18 · 3 обязательных заданий · ★★★★ Видео
- Text files: write then read Files keep data after the program ends · Opening and closing · Writing with fprintf · Reading with fscanf and fgets Lesson 19 · 3 обязательных заданий · ★★★ Видео
- Обработка ошибок с кодами возврата C has no try/except · Return a status code · Reporting the answer through an out-pointer · Sentinels for "no value" Lesson 20 · 3 обязательных заданий · ★★★ Видео
- Bits, binary, and bitwise operators Numbers are bits · Place value and powers of two · Reading a bit with >> and & 1 · The bitwise operators Lesson 21 · 3 обязательных заданий · ★★★ Видео
- Run-length encoding (compression) Squeezing repeated data · What a "run" is · Counting a run · Building the encoded string Lesson 22 · 3 обязательных заданий · ★★★★ Видео
- Preprocessor, const, static, and enum What runs before the compiler · #include and #define · const vs #define · static and enum Lesson 23 · 3 обязательных заданий · ★★★ Видео
Чтение и ресурсы
- Краткая история C Where C came from · Close to the machine · The famous book · C today Чтение и ресурсы
- Для чего используется C What people build with C · Operating systems · Tiny computers everywhere · Databases and other languages Чтение и ресурсы
- Где узнать больше Играй и практикуйся · Читай и используй как справочник · Больше на этом сайте · Совет Чтение и ресурсы
- Настройка компьютера Run C on your own computer · Step 1 — Install a compiler · Step 2 — Install VS Code · Step 3 — Add the C/C++ extension Чтение и ресурсы
Open the C reference
Every topic in one place, with short examples you can run.
Где узнать больше
- Learn-C.org Бесплатные практические уроки по C, которые выполняются в браузере
- Exercism — трек по C Маленькие упражнения с дружелюбной обратной связью от ментора
- HackerRank — C Практические задачи, от простых до сложных
- cppreference — C Тщательная бесплатная справка по каждой функции C
- Язык программирования C (K&R) Классическая книга от создателей C
- Visual Studio Code Бесплатный редактор для написания C на вашем компьютере
- Практические задачи по C (этот сайт) Дополнительные задания по C для самопроверки
- AP CS A (этот сайт) Изучайте Java — ещё одного близкого родственника C