Welcome to the C Programming Masterclass repository, prepared by InformatiX for the Turkish-German University (TGU/TDU) Fall 2025-2026 final exams.
This repository contains code examples, exercises, and notes covering the curriculum between the Midterm and Final exams.
Note: The code examples utilize a simplified "Digital Library" analogy (Shelves as Arrays, Books as Structs) to make memory management concepts easier to visualize.
The content focuses on the core building blocks of C programming and introductory cryptography:
- Arrays: Working with static lists and contiguous memory.
- Structs: Defining custom data types (e.g.,
struct Book) to group related variables. - Strings: Handling character arrays.
- Modular Programming: Defining and calling functions to organize code.
- Scope: Understanding Local vs. Global variables (Variable visibility).
- Recursion: Solving problems by breaking them down into smaller instances (e.g., Factorial, Recursive Search).
- Coding: Basic data representation.
- Encryption: Implementation of the Caesar Cipher algorithm (Shift Cipher).
- Key Exchange: Logic behind Diffie-Hellman key exchange (Alice & Bob simulation).
tdu-informatix-c-masterclass/
├── 01-Arrays/ # Array logic
├── 02-Structs/ # Struct definitions
├── 03-Functions/ # Function basics, Scope, Recursion
└── 04-Cryptography/ # Caesar Cipher & Diffie-Hellman examples
Codes are compatible with standard C99/C11.
- For standard files:
gcc filename.c -o app
./app- For files using math functions (
<math.h>):
gcc filename.c -o app -lm
./appThis project is licensed under the GNU General Public License v3.0. See the LICENSE file for details.
Copyright (c) 2026 Yusuf Özçetin.
All rights reserved. This material is provided for educational purposes and is free to use under the terms of the GPLv3 License.