Program for string function strset() in C programming language
/*Program for string
function strset() in C programming language*/
#include<stdio.h>
#include<conio.h>
#include<string.h>
void main()
{
char str1[20];
clrscr();
puts("Enter your string :");
gets(str1);
puts("string after set function
:");
strset(str1,'*');
puts(str1);
getch();
}
=================
OUTPUT:-
Enter your string :
windows
string after set function :
*******
Comments
Post a Comment