/*WAP to Use of string copy strcopy() function */
#include<stdio.h>
#include<conio.h>
main( )
{
char source[ ] = "codezworld" ;
char target[20] ;
strcpy ( target, source ) ;
printf ( "\nsource string = %s", source ) ;
printf ( "\ntarget string = %s", target ) ;
}
No comments:
Post a Comment