filmov
tv
C program to concatenate strings using user define function strcat(). #shorts #cs #youtubeshorts

Показать описание
C program to concatenate strings using user define function strcat(). #shorts #cs #youtubeshorts
program to add two words ..
program to add strings..
c program for addition of strings with space..
program to concatenate string with user define function.
using strcat().
without user define function.
EXPLANATION :-
First we take input in string arrays to concatnate.
here we prefer to use gets instead of scanf so it is easy to take input as scanf will generate some issues while taking output.
After that we will concatenate or combine strings using strcat function.. But the issue is if we concatenate the both strings it will give output without a space between both inputs..
So to overcome this issue we will first concatenate First string with a simple space like :- (" ")
so it will add a space at the last of first string... After that the concatenated string can again concatenated with the other string so the Output will generate with a proper space between the strings........
IF YOU HAVE ANY CONFUSIONS PLEASE OPEN TO ASK I WILL TRY TO EXPLAIN YOU AS GOOD AS I CAN......
program to add two words ..
program to add strings..
c program for addition of strings with space..
program to concatenate string with user define function.
using strcat().
without user define function.
EXPLANATION :-
First we take input in string arrays to concatnate.
here we prefer to use gets instead of scanf so it is easy to take input as scanf will generate some issues while taking output.
After that we will concatenate or combine strings using strcat function.. But the issue is if we concatenate the both strings it will give output without a space between both inputs..
So to overcome this issue we will first concatenate First string with a simple space like :- (" ")
so it will add a space at the last of first string... After that the concatenated string can again concatenated with the other string so the Output will generate with a proper space between the strings........
IF YOU HAVE ANY CONFUSIONS PLEASE OPEN TO ASK I WILL TRY TO EXPLAIN YOU AS GOOD AS I CAN......