Concatenate Two String using STRCAT() – C Program

In previous C String Program post we had discussed about String in Reverse Order and Toggle Case in String  and Calculate Length of String and String Compare and Reverse String and Concatenate String.

STRCAT() Function – C Program

In previous C program post we have done the concatenate two string without using STRCAT function.

STRCAT() Function – The STRCAT() Function used to join second string to at the end of first string.

The Syntax of STRCAT() Function :

strcat(str1, str2) – str2 is concatenated at the end of str1.
strcat(str2, str1) – str1 is concatenated at the end of str2.

Example of STRCAT() Function C Program

The Output of STRCAT C Program is :

Above STRCAT() C Program we have given two string “C” and “Program”, the output of concatenated string is : “CProgram”.

Leave a Reply

Your email address will not be published. Required fields are marked *

7 + 2 =

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">