Its not exactly clear ...what is memset ?
#include <memory.h>
#include <stdio.h>
void main( void )
{
char buffer[] = "This is a test of the memset function";
printf( "Before: %s\n", buffer );
memset( buffer, '*', 4 );
printf( "After: %s\n", buffer );
}
Output
Before : This is a test of the memset function
After : **** is a test of the memset function
bas particular characters reset ho rahe hai m/r se. nthin else..thanku its clear nw