STRNCAT() Function – C Program

In previous C Language Program post we had discussed about String in Reverse Order and Toggle Case in String and Calculate Length of String and Reverse String and Concatenate String and Compare String and STRCAM Function and STRCAT Function and STRLEN Function and STRCPY Function.

STRNCAT() Function – C Program

Write a C Program for concatenates two string using STRNCAT Function.

STRNCATE() Function : – The STRNCAT used to concatenate some portion of second string at the end of first string.

The Syntax of STRNCAT() Function :

strncat(str1, str2, 5) – The first 5 character of string str2 is concatenated at the end of string str1.
strncat(str2, str2, 2) – The first 2 character of string str1 is concatenated at the end of string str2.

Example of STRNCAT() Function C Program

The output of STRNCAT() Function C Program is :


Leave a Reply

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

2 + 3 =

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="">