STRNSET() Function – C Program

In previous C Language Program post we had discussed about  Compare String and STRCAM Function and STRCAT Function and STRLEN Function and STRCPY Function and STRNCAT Function and STRNCPY Function and STRREV Function and STRUPR Function and STRLWR Function and STRSET Function.

STRNSET() Function – C Program

Write a C Program to sets some portion of the character of string to given character.

STRNSET() Function – The STRNSET() Function used to sets some portion of  character of string to given character in C Program.

The Syntax of STRNSET() Function :

strnset(str1,  ‘ * ‘, 5) –  First 5  character of string str1 replaced by character ‘ * ‘.

Example of STRNSET() Function C Program

The output of STRNSET() Function C Program is :


Author: Meera Academy

Leave a Reply

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