Wednesday, 19 March 2014

C Program for Use of stringcopy function

/* Use of stringcopy function */
main( )
{
char  source[ ] = "Sayonara" ;
char  target[20] ;
strcpy ( target, source ) ;
printf ( "\nsource string = %s", source ) ;
printf ( "\ntarget string = %s", target ) ;
}

No comments:

Post a Comment