C programlama dilinde girilen 2 stringi birleştiren örnek kodlar.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | #include<stdio.h> #include <locale.h> #include <string.h> int main() { setlocale(LC_ALL, "Turkish"); char str1[1000], str2[1000]; printf("Metin 1:\n"); gets(str1); printf("Metin 1:\n"); gets(str2); strcat(str1,str2); printf("Birleştirilmiş hali:\n%s",str1); } |










Yorum Yap