Pemrograman C
Daripada printf hingga penunjuk, memori, dan struktur data — tulis di pelayar web anda dan kompil serta jalankan di pelayan kami.
- c
- 23 Pelajaran
- 23 videos
- Berjalan di browser Anda
Pada perangkat ini: 0 dari 23 pelajaran diselesaikan
Setiap pelajaran berjalan di browser Anda — tulis kode nyata, tekan Jalankan, dan tugas memeriksa dirinya sendiri. Gratis, tidak perlu akun, dengan catatan terjemahan yang dipasangkan dengan bahasa Inggris.
Pelajaran dalam kursus ini
27 dari 27 pelajaran ditampilkan
Tidak ada pelajaran yang cocok. Hapus pencarian atau pilih filter lain.
- Dasar C: main, printf, dan fungsi C adalah bahasa yang dikompilasi · Rangka dasar C · printf dan tipe data Lesson 1 · tugas yang di 3 · ★ Video
- Variables, types, and arithmetic Every value has a type · Doing arithmetic · Integers divide differently · Reading input Lesson 2 · tugas yang di 3 · ★ Video
- 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 · tugas yang di 3 · ★★ Video
- Loops: while, for, and accumulation Repeating work · while loops · for loops · Accumulation and counting Lesson 4 · tugas yang di 3 · ★★ Video
- Functions, parameters, and return values Why functions · Parameters and return values · void functions, and building big from small · C copies your arguments Lesson 5 · tugas yang di 3 · ★★ Video
- Nested loops and patterns A loop inside a loop · Rows and columns · Building a line, then a block · Counting with nested loops Lesson 6 · tugas yang di 3 · ★★★ Video
- 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 · tugas yang di 3 · ★★ Video
- 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 · tugas yang di 3 · ★★★ Video
- 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 · tugas yang di 3 · ★★★ Video
- Array algorithms: max, count, search, average Four classic array jobs · Finding the maximum · Counting with a condition · Linear search Lesson 10 · tugas yang di 4 · ★★★ Video
- 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 · tugas yang di 3 · ★★★ Video
- Searching: linear and binary Two ways to search · Linear search · Why sorting enables binary search · low, high, mid Lesson 12 · tugas yang di 3 · ★★★ Video
- Sorting: bubble, selection, and insertion Putting an array in order · Swapping two elements · Bubble sort · Insertion sort Lesson 13 · tugas yang di 3 · ★★★★ Video
- Recursion: base case and recursive case A function that calls itself · The base case · The recursive case · Recursion over an array Lesson 14 · tugas yang di 3 · ★★★★ Video
- Structs and typedef: . vs -> Grouping related data · struct and typedef · Member access with . · Through a pointer with -> Lesson 15 · tugas yang di 3 · ★★★ Video
- 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 · tugas yang di 3 · ★★★★ Video
- Daftar terhubung (Linked lists) Nodes joined by pointers · A self-referential struct · head and the NULL end · Adding a node at the front Lesson 17 · tugas yang di 3 · ★★★★★ Video
- Stacks and queues (array-backed) Two ways to hold items · A stack is LIFO · Array-backed stack · A queue is FIFO Lesson 18 · tugas yang di 3 · ★★★★ Video
- 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 · tugas yang di 3 · ★★★ Video
- Penanganan kesalahan dengan kode pengembalian C has no try/except · Return a status code · Reporting the answer through an out-pointer · Sentinels for "no value" Lesson 20 · tugas yang di 3 · ★★★ Video
- 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 · tugas yang di 3 · ★★★ Video
- Run-length encoding (compression) Squeezing repeated data · What a "run" is · Counting a run · Building the encoded string Lesson 22 · tugas yang di 3 · ★★★★ Video
- Preprocessor, const, static, and enum What runs before the compiler · #include and #define · const vs #define · static and enum Lesson 23 · tugas yang di 3 · ★★★ Video
Pembacaan dan sumber daya
- Sejarah singkat C Where C came from · Close to the machine · The famous book · C today Pembacaan dan sumber daya
- Apa C digunakan untuk What people build with C · Operating systems · Tiny computers everywhere · Databases and other languages Pembacaan dan sumber daya
- Di mana untuk belajar lebih lanjut Bermain dan berlatih · Baca dan rujuk · Lebih lanjut di situs ini · Tips Pembacaan dan sumber daya
- Siapkan komputer Anda Run C on your own computer · Step 1 — Install a compiler · Step 2 — Install VS Code · Step 3 — Add the C/C++ extension Pembacaan dan sumber daya
Open the C reference
Every topic in one place, with short examples you can run.
Di mana untuk belajar lebih lanjut
- Learn-C.org Pelajaran C gratis, berbasis praktik, yang dijalankan di browser
- Exercism — lintasan C Latihan kecil dengan umpan balik mentor yang ramah
- HackerRank — C Soal latihan, dari mudah hingga sulit
- cppreference — C Referensi teliti dan gratis untuk setiap fungsi C
- Bahasa Pemrograman C (K&R) Buku klasik oleh pencipta C
- Visual Studio Code Editor gratis untuk menulis C di komputer Anda sendiri
- Soal latihan C (situs ini) Tantangan C tambahan untuk menguji diri sendiri
- AP CS A (situs ini) Belajar Java, kerabat dekat lainnya dari C