🚀 C# ile Programlamaya Giriş: Kodlamaya İlk Adımını At, Kendi Projelerini Geliştirmeye Başla!
00HOME
07GLOSSARY 08TAGS ♡MY LIST ⌕SEARCH
TRENG
C

Introduction to Programming with C

C is the high-level language closest to the hardware: you manage memory and bits directly. From setup to pointers, from logging sensor data to masking register bits, this course opens the door to the world of microcontrollers and embedded systems.

LESSONS
12
TOTAL TIME
1 h 9 min
LEVEL
Beginner
Start
0% completed · 0/12 lessons

// Curriculum

  1. 01 Setup: compiler, editor and your first build Install the tools you need to write C (GCC/MinGW, Code::Blocks or VS Code) and get to know the four build steps that turn source code into a running program. 6 min
  2. 02 Your first program: main, printf and return Get to know the skeleton of a C program line by line; print text and numbers with printf, and learn escape sequences and main's return value. 5 min
  3. 03 Variables and data types Store values with int, float, double and char; measure type sizes with sizeof, see the integer division trap and meet the fixed-width types of stdint.h. 5 min
  4. 04 Input and output: printf formats and scanf Produce aligned tables and hexadecimal output with printf; read numbers from the user with scanf, check its return value and escape the trap of the leftover Enter in the keyboard buffer. 5 min
  5. 05 Operators and conditions: if, switch and bitwise operators Use arithmetic, comparison and logical operators; let the program decide with if/else and switch, and read the bits of a status byte with bitwise operators. 6 min
  6. 06 Loops: for, while and do-while Make the computer repeat a job: build a current table with for, follow a battery discharge with while, validate input with do-while and reduce noise by averaging ADC samples. 6 min
  7. 07 Functions: prototypes, pass by value and header files Move repeated calculations into functions; learn to write prototypes, why arguments are passed as copies, and how to split code into .h/.c files. 6 min
  8. 08 Arrays and strings: char arrays and '\0' Keep measurements in arrays and find the element count with sizeof; understand the '\0' at the end of text in C, and use strlen, strcmp and snprintf to handle strings safely. 5 min
  9. 09 Pointers: addresses, * and & Take a variable's address with &, reach the value at that address with *; change variables by passing addresses to functions, and learn pointer arithmetic and how it relates to arrays. 6 min
  10. 10 Memory management: malloc, free and their traps Allocate memory with malloc, calloc and realloc for data whose size is only known at run time, give it back with free, and learn to recognise memory leaks, dangling pointers and double frees. 6 min
  11. 11 Structs and files: writing a sensor log to CSV Group related data into a single type with struct and typedef, access it through a pointer with ->; write sensor readings to a CSV file and read them back with fopen, fprintf and fscanf. 6 min
  12. 12 The embedded C bridge: registers, bit masks and volatile See why C is the language of choice on microcontrollers; set, clear, toggle and read register bits with bit masks; learn why volatile and fixed-width types matter, and get ready for the Proteus course. 7 min

// Final exam and certificate

20 random questions from the lessons, 30 minutes, pass mark 70%. If you pass, you get a verifiable certificate of achievement (with a QR code).

Take the final exam