Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Modern C Programming

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.


📺 Watch the Course

YouTube Channel

https://www.youtube.com/@LearningLad

Modern C Programming Playlist

https://www.youtube.com/playlist?list=PLfVsf4Bjg79AOG-a5-I_g2YddCwb_EjS5


Repository Contents

This repository includes source code covering topics such as:

Getting Started

  • Introduction to C Programming
  • Compilation vs Interpretation
  • Installing GCC (MSYS2 / MinGW-w64)
  • Installing Visual Studio Code
  • Configuring Visual Studio Code

C Programming Basics

  • Hello World Program
  • printf()
  • Escape Sequences
  • Comments
  • Constants
  • Keywords
  • Data Types
  • Format Specifiers

Variables & Memory

  • 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

Input & Output

  • printf() Return Value
  • scanf()
  • Reading Multiple Inputs
  • scanf() Return Value
  • Using Text in scanf() Format Strings

Operators

  • Arithmetic Operators
  • Compound Assignment Operators
  • Increment & Decrement Operators
  • Boolean (bool)
  • Relational Operators
  • Logical Operators

File Handling

  • 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.


Compiling the Programs

Windows (GCC / MinGW-w64)

Compile:

gcc program.c -o program.exe

Run:

program.exe

Linux

Compile:

gcc program.c -o program

Run:

./program

macOS

Compile:

gcc program.c -o program

Run:

./program

Example

cd operators/arithmetic

gcc arithmetic.c -o arithmetic

./arithmetic

On Windows:

arithmetic.exe

Contributing

If you find an error in the source code or have suggestions for improvement, feel free to open an Issue or submit a Pull Request.


License

This project is licensed under the MIT License.


Support the Project

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

About

Source code for the Modern C Programming tutorials on the LearningLad YouTube channel.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors