String Concatenation with 'strcat()' function


In Turbo c IDE, string is not a fundamental datatype therefore we need  define string as a char array
so let get into algorithm.


Algorithm : -

Step 1 : Include string.h header file to use "strcat()" function.
Step 2 : Accept First String (char array).
Step 3 : Accept Second String.
Step 4 : Use strcat() function and pass 2 arguments as first string and second string respectively.
Step 5 : strcat() function returns a pointer hence store that pointer.
Step 6 : Take while loop and iterate pointer and print one by one char until pointer not gets null.
Step 7 : Stop.



If you want to link of program click on this