This project implements a string manipulation algorithm in C that divides a text into two parts at a specific cutoff point (
-
Input: Reads a source string and a split index
$N$ . -
Part 1 (
$0 \to N$ ): Copies characters from the start up to index$N$ intostr1. -
Part 2 (
$N \to End$ ): Copies the remaining characters intostr2. -
Null Termination: Manually adds
\0to the end of both new strings to ensure they are valid C-strings.
Based on Question 6 from the problem set:
Metni giriniz: kolaygelsin
Bolunecek indeksi (n) giriniz: 5
--- Sonuclar ---
Orijinal Metin: kolaygelsin
Str1 (Ilk 5): kolay
Str2 (Kalan): gelsin