Welcome to the official source code repository for the Modern C Programming course by LearningLad.
This repository contains the source code used throughout the YouTube course. As new tutorials are published, the corresponding source code and examples will be added here.
If you're following the course on YouTube, you can use this repository to download, compile, run, and experiment with the programs discussed in each tutorial.
YouTube Channel
https://www.youtube.com/@LearningLad
Modern C Programming Playlist
https://www.youtube.com/playlist?list=PLfVsf4Bjg79AOG-a5-I_g2YddCwb_EjS5
This repository includes source code covering topics such as:
- Introduction to C Programming
- Compilation vs Interpretation
- Installing GCC (MSYS2 / MinGW-w64)
- Installing Visual Studio Code
- Configuring Visual Studio Code
- Hello World Program
- printf()
- Escape Sequences
- Comments
- Constants
- Keywords
- Data Types
- Format Specifiers
- Variables
- Bits & Bytes
- Computer Memory
- Creating Variables
- Identifiers
- sizeof Operator
- Memory Addresses
- Character Representation
- Signed vs Unsigned Integers
- Size Modifiers
- Integer Constant Suffixes
- float, double and long double
- Data Type Limits
- Scientific Notation
- Floating Point Limits
- printf() Return Value
- scanf()
- Reading Multiple Inputs
- scanf() Return Value
- Using Text in scanf() Format Strings
- Arithmetic Operators
- Compound Assignment Operators
- Increment & Decrement Operators
- Boolean (bool)
- Relational Operators
- Logical Operators
- Introduction to File Handling
- fputc()
- fgetc()
- ferror(), feof(), clearerr()
- fscanf()
- fprintf()
- fgets()
- fputs()
- rewind()
- Text Mode vs Binary Mode
- fwrite()
- fread()
- fprintf() vs fwrite()
- fread() & fwrite() with Arrays
- Reading & Writing Structures
- ftell()
- fseek()
- tmpfile()
- rename()
- remove()
More topics will be added as the course progresses.
Compile:
gcc program.c -o program.exeRun:
program.exeCompile:
gcc program.c -o programRun:
./programCompile:
gcc program.c -o programRun:
./programcd operators/arithmetic
gcc arithmetic.c -o arithmetic
./arithmeticOn Windows:
arithmetic.exeIf you find an error in the source code or have suggestions for improvement, feel free to open an Issue or submit a Pull Request.
This project is licensed under the MIT License.
If you find this repository useful:
- ⭐ Star this repository
- 🍴 Fork this repository
- 📺 Subscribe to the LearningLad YouTube channel
Thank you for your support, and happy coding!
— LearningLad