#include<stdio.h>
#include<string.h>
int main()
{
char an[51] = "My University Name is `University Of Asia Pacific'";
printf("Before memset() : %s\n", an);
printf("\n");
memset(an + 3 ,'.', 10*sizeof(char));
printf("After memset() : %s\n",an);
return 0;
}
#include<string.h>
int main()
{
char an[51] = "My University Name is `University Of Asia Pacific'";
printf("Before memset() : %s\n", an);
printf("\n");
memset(an + 3 ,'.', 10*sizeof(char));
printf("After memset() : %s\n",an);
return 0;
}
Comments
Post a Comment