main() { char *a=new char[100]; char *b=new char[100]; strcpy(a,"abcde"); cout<<a<<endl; strncpy(b,a,1); printf("%s",b); getch(); }