STRNCAT() Function – C Program

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 *

Captcha *