Write a C Program to Concatenate Two Strings Without Using strcat() function
Certainly! Below is a C program that concatenates two strings without using the `strcat()` function. Instead, the program manually appends the characters of the second string to the first string.
### C Program:
```c
#include <stdio.h>
void concatenateStrings(char str1[], char str2[]) {
int i = 0, j = 0;
// Move to the end of the first _______ __________ ____ ________ ____.
___ ________ _____ ____ __________ _____ ________ _________ _______ _______ ________.
___ ______ ___ _________ _________ _____ __________ ______ ___ _______ ____ ____.
______ __________ _________ ___ ______ _________ _________ ________.
____ ________ _____ __________ __________ ________ __________ _________ _________ ____ _______.
___ ____ ______ ______ ____ ______ ___.
_____ ___ ______ ____ _____ ____ _________ ____ __________.
__________ ____ ________ ________ ______ ____ _____.
________ _________ __________ _________ __________ _____ ________ _________ _________ _____ ______ __________.
________ __________ _________ _____ ____ _______ ________ _______ __________ _________ __________ _____.
____ _____ ____ ___ ____ __________ __________ ___ ________.
_______ ______ ____ ________ ________ _______ ________ ______ ___ ______.
________ __________ ____ _______ _______.
____ _______ ______ ___ _______ _____ ___ ___ _______ __________ ____.
__________ ________ _______ ___ _______ ____ _______ ____.
________ ___ ______ _____ ________.
___ _________ _____ _____ __________ _________ _______ _________ _________.
_______ ___ ___ __________ ____ _____ _______.
__________ _____ ________ ________ _______.
_________ ______ _____ ________ _____ ________ ____ __________ ___ ____.
________ __________ _____ ________ _________ ______ _____.
____ ___ __________ ________ __________ _________.
________ ______ __________ __________ _____ __________ ____ ____.
___ ___ __________ _____ ______ _____ ____ ________ _____ _____ _____.
___ _________ _______ ______ ____ ____.
_________ _________ ____ ________ _______ ________ __________ ______ _________ ________ _______.
_________ ___ ____ ___ ________ ___ _____ ___ _________ ________.
____ ________ ___ ______ ________ ___ ________.
_____ ______ __________ __________ _________ ____ ____ ______ _____ ________.
_______ ________ __________ _____ ________ _________ ______ _________.
_______ _________ ________ _____ _____ _________ _________ _______ _________ ___ __________ __________.
______ ______ _________ ________ ______ _______ ____ ____ ___.
___ ________ _____ _________ ____ _________ _____ ____ __________.
_____ _______ ______ _____ _______ ______ _______ ________.
_____ _______ ________ _________ _________ ________ ____ ___.
___ ________ _____ _________ ___ _______ ________ _________.
______ __________ _____ ___ ___ _________ __________ __________ _______.
___ __________ _________ ______.
Get Full Answer on WhatsApp